Learning Aim
To use loops to repeat commands and build symmetrical Turtle patterns.
Defined End Point
By the end of this lesson, you will be able to use loops and repeat values to create a symmetrical Turtle pattern.
Creative Code. Colourful Thinking.
Lesson 4
Use loops to repeat Turtle commands and create symmetrical patterns.
Use these stages to move from reading code to creating your own version.
To use loops to repeat commands and build symmetrical Turtle patterns.
By the end of this lesson, you will be able to use loops and repeat values to create a symmetrical Turtle pattern.
Repetition Challenge
forward(100)
right(90)
forward(100)
right(90)
forward(100)
right(90)
forward(100)
right(90)
Stretch: Write the number of repeats needed.
Predict how many circles will be drawn.
Read the code first. Do not run it yet.
for i in range(6):
circle(40)
right(60)
Why does the turtle turn 60 degrees each time?
Watch how repeated commands build a pattern without typing the same lines again and again.
Type this code into Mu Editor and run it.
from turtle import *
speed(0)
pencolor("cyan")
pensize(3)
for i in range(12):
circle(50)
right(30)
done()
Typing the code yourself helps build Python fluency and debugging skills.
Trace the loop and identify what is repeated.
What does range(12) control?
Which indented lines repeat?
What happens if right(30) changes?
Make small changes and test the pattern each time.
Create a kaleidoscope-style pattern using a loop.
Repeat a circle 6 times.
Repeat a shape 12 times with colour.
Create a mandala using nested or combined loops.
Example code and output.
Use the example to connect the Python instructions with the visual result.
Example code
from turtle import *
speed(0)
pencolor("cyan")
pensize(3)
for i in range(12):
circle(50)
right(30)
done()
This WAGOLL uses a loop to repeat neatly and show clear symmetry.
Explain what you learned and identify the next improvement you would make.
Add a second loop to create a layered pattern.
How does a loop reduce repeated code?