1>>> turtle.heading()
222.0
3>>> turtle.right(45)
4>>> turtle.heading()
5337.0
6
1>>> turtle.home()
2>>> turtle.position()
3(0.00,0.00)
4>>> turtle.heading()
50.0
6>>> turtle.circle(50)
7>>> turtle.position()
8(-0.00,0.00)
9>>> turtle.heading()
100.0
11>>> turtle.circle(120, 180) # draw a semicircle
12>>> turtle.position()
13(0.00,240.00)
14>>> turtle.heading()
15180.0
16
1>>> for i in range(4):
2... turtle.fd(50); turtle.lt(80)
3...
4>>> for i in range(8):
5... turtle.undo()
6
1>>> turtle.home()
2>>> turtle.dot()
3>>> turtle.fd(50); turtle.dot(20, "blue"); turtle.fd(50)
4>>> turtle.position()
5(100.00,-0.00)
6>>> turtle.heading()
70.0
8
1>>> turtle.position()
2(0.00,0.00)
3>>> turtle.backward(30)
4>>> turtle.position()
5(-30.00,0.00)
6
1 >>> tp = turtle.pos()
2 >>> tp
3 (0.00,0.00)
4 >>> turtle.setpos(60,30)
5 >>> turtle.pos()
6 (60.00,30.00)
7 >>> turtle.setpos((20,80))
8 >>> turtle.pos()
9 (20.00,80.00)
10 >>> turtle.setpos(tp)
11 >>> turtle.pos()
12 (0.00,0.00)
13
1>>> turtle.speed()
23
3>>> turtle.speed('normal')
4>>> turtle.speed()
56
6>>> turtle.speed(9)
7>>> turtle.speed()
89
9