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()
14print(screen.canvheight)
15screen.exitonclick()
16
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>>> turtle.position()
2(150.00,-0.00)
3>>> turtle.color("blue")
4>>> astamp = turtle.stamp()
5>>> turtle.fd(50)
6>>> turtle.position()
7(200.00,-0.00)
8>>> turtle.clearstamp(astamp)
9>>> turtle.position()
10(200.00,-0.00)
11