Z: Turtle Cheatsheet

Python Cheatsheet
Getting Ready

1
2
3
4
import turtle
turtle.mode(‘logo’)
turtle.speed(integer)
turtle.shape(turtle)

Movement

1
2
3
4
5
6
7
8
import turtle
turtle.forward(distance)
turtle.backward(distance)
turtle.right(angle)
turtle.left(angle)
turtle.home()
turtle.goto(x, y)
turtle.setheading(degrees)

Circles and angles

1
2
turtle.circle(radius)
turtle.circle(radius, angle)

Painting Colours

1
2
3
4
5
6
7
8
9
turtle.begin_fill()
turtle.end_fill()
turtle.pendown()
turtle.penup()
turtle.pensize(integer)
turtle.pencolor(string)
turtle.fillcolor(string)
turtle.color(string)
turtle.color(string1, string2)

Iteration Shapes
Section to complete

1
for in range(3):
1
 
1
 
1
 
1