Turtle workspace

Python code
Drawing
Output

              
            

Quick reference

Movement

t.forward(100)t.backward(50)t.left(90)t.right(45)t.goto(0, 0)t.setheading(90)

Pen and color

t.color("blue")t.pensize(3)t.penup()t.pendown()t.speed(0)t.begin_fill()t.end_fill()

Shapes and screen

t.circle(50)t.dot(20)t.shape("turtle")t.write("Hi")screen.bgcolor("black")screen.onkey(f, "Up")screen.listen()