Year 6 - Mr Mussell Home Learning

Latest articles
Maths Extension Thursday 10th October10 Oct 2024 International Day - Upload your Stories, Myths & Legends here!26 Sep 2024 Computing - Brute Force Hacking20 Sep 2024
Archive
Articles 2023-24 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

Please read more about our SEND provision here.
Copyright © 2024   Handsworth Primary School
Website Design & Development for Schools By VisioSoft   |   T&C
User Guide   2910  


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

Selected Time:  _:_

Hours
Minutes
 
Set Time
CLOSE

CLOSE