Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # the goto function
- import turtle, random
- wn = turtle.Screen()
- pragya = turtle.Turtle()
- pragya.speed(100)
- for i in range(100):
- xpos = random.randint(-450, 450)
- ypos = random.randint(-350, 350)
- pragya.penup()
- pragya.goto(xpos, ypos)
- pragya.stamp()
- wn.exitonclick()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement