Remember this example with For loops? <iframe src="https://trinket.io/embed/blocks/504306d90d" width="100%" height="500" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe> Let's see it in interactive code: ```python.run import turtle tina = turtle.Turtle() import random tina.shape("turtle") tina.speed(500) tina.penup() for location in [150, 75, 0, -75, -150]: tina.color('#%06x' % random.randint(0, 2**24 - 1)) tina.goto(location,0) tina.begin_fill() tina.circle(10) tina.end_fill() tina.goto(-70,-50) tina.color('#000000') tina.goto(0,-80) ``` The `list` that the Turtle uses for the heights at which she should draw circles is `[150, 75, 0, -75, -150]`. Try changing those to different numbers.

Congratulations!

Enter your Name and Save your certificate:

Your certificate has been created!

Share this link with your friends, family or teacher:

Certificate of Completion

Presented to
for successfully completing an Hour of Python!
On behalf of the trinket.io team, congratulations and thanks!
Visit hourofpython.com to keep learning.
×