Year 6 - Mr Charles Home Learning

Latest articles
Computing - 23.04.2423 Apr 2024 Computing - 19.03.2419 Mar 2024 Computing - 27.02.2427 Feb 2024 Computing - 09.02.2409 Feb 2024 Computing - Coding Mondrian 05.12.2305 Dec 2023 Computing - Using loops in Python 28.11.2328 Nov 2023 Computing - Python Commands 21.11.2321 Nov 2023 Computing - Nested Loops 14.11.2314 Nov 2023 Computing - Tinkering with Logo 31.10.2331 Oct 2023 Computing - Computing Heroes 17.10.2317 Oct 2023 Computing Heroes 10.10.2310 Oct 2023 Bletchley Park Computing Lesson03 Oct 2023
Archive
Articles 2021-22 Articles 2020-21

Computing - Using loops in Python 28.11.23

28 Nov 2023


Today you are using Trinket to create a shape design using code. 

Repeated circle design

import turtle
tina = turtle.Turtle( )

def home( ):
tina.penup( ) tina.setx(-140)
tina.sety(90)

home( ) tina.speed(0)
tina.pencolor(4, 86, 26)
tina.fillcolor(216, 119, 0)

for i in range(8):
for i in range(8):
tina.pendown( )
tina.begin_fill( )
tina.circle(50)
tina.end_fill( )
tina.penup( )
tina.forward(40)
tina.back(320)
tina.right(90)
tina.forward(40)
tina.left(90)

home( )


for i in range(8):
for i in range(8):
tina.pendown( )
tina.circle(50)
tina.penup( )
tina.forward(40)
tina.back(320)
tina.right(90)
tina.forward(40)
tina.left(90)

Challenge

Go onto Trinket and tinker with this code to create your own repeated circles.
 
 

Please wait

Handsworth Avenue
Highams Park
London
E4 9PJ
Copyright © 2024   Handsworth Primary School
Website Design & Development for Schools By VisioSoft   |   T&C
User Guide   208  


Selct an hour and a minute and then click on Set Time

Selected Time:  _:_

Hours
Minutes
 
Set Time
CLOSE

CLOSE