The blocks we've been using contain code inside them. That's how our Turtle has been able to understand us: she reads our code. Each of our examples has code underneath that you can see by clicking the Code (`>_`) button. <iframe src="https://trinket.io/embed/blocks/a16723e51e" width="100%" height="550" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe> Here's the code you'll see: ```python import turtle tina = turtle.Turtle() import random # This sets the Turtle's shape tina.shape("turtle") # This sets the turtle's speed tina.speed(500) # This sets the Turtle's color tina.color('#%06x' % random.randint(0, 2**24 - 1)) tina.begin_fill() tina.circle(10) tina.end_fill() # When the pen is up, our Turtle doesn't draw when she moves. tina.penup() tina.color('#000000') # This 'goto' statement tells the turtle to go to a specific location tina.goto(0,-80) ``` The Lines after the `#` symbols are comments that I wrote to help you understand the code. Programmers often do this so they can explain things to each other. The programming language ignores these lines, so we can write whatever we want!

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.
×