Turtley Awesome Python Word
Turtley Awesome Python Word
The turtle can also add colour to the shapes we draw. To do this we
use .begin_fill() at the start of our code block and .end_fill() at the
end of our code block. The following incomplete code is supposed to:
● Move the turtle to a new position
● Draw a circle
● Move the turtle to another position
● Draw a square with a red fill
● Return to the default position
6. Complete the code below:
t.goto(-120, 120)
t.circle(80)
You would have noticed that when we use .goto() to move the turtle,
it draws a line as it moves. Sometimes we may want to move the
turtle to a different location without a line being drawn. To do this,
we use .penup() which means the pen has been lifted. We can then
use .pendown() when we want to draw again.
7. Now let us put everything we have learnt into practice. Write the
code that does the following:
● Sets the pens outline colour to blue
● Sets the pens fill colour to pink
● Move the turtle forward 100 units
● Move the turtle up 70 units
● Lift the pen and move to coordinates (-20, -200)
● Draw a square with a pink fill
● Lift the pen and move to coordinates (0, 200)
● Draw a dot
● Return to default position
Your code should produce
something similar to this!