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
1import turtle
2myTurtle = turtle.Turtle()
3
4myTurtle.forward(100)
5myTurtle.right(90)
6myTurtle.forward(100)
1import turtle
2satya = turtle.Turtle()
3maan = turtle.Turtle()
4#for my satya object
5satya.shape("turtle")
6satya.color('blue')
7distance = 100
8satya.forward(distance)
9#for my maan object
10maan.goto(10,200)
11
12
13screen = turtle.Screen()
14screen.exitonclick()
1>>> turtle.position()
2(0.00,0.00)
3>>> turtle.forward(25)
4>>> turtle.position()
5(25.00,0.00)
6>>> turtle.forward(-75)
7>>> turtle.position()
8(-50.00,0.00)
9