Advertisement
GreatRaymondo

Turtle

May 20th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. from random import randint
  2. from turtle import Turtle
  3. from turtle import Turtle
  4. prodd = Turtle()
  5. prodd.color('red')
  6. prodd.shape('turtle')
  7. prodd.penup()
  8. prodd.goto(-160, 100)
  9. prodd.pendown()
  10. coute = Turtle()
  11. coute.color('green')
  12. coute.shape('turtle')
  13. coute.penup()
  14. coute.goto(-160, 70)
  15. coute.pendown
  16. jimnookie = Turtle()
  17. jimnookie.color('blue')
  18. jimnookie.shape('turtle')
  19. jimnookie.penup()
  20. jimnookie.goto(-160, 40)
  21. jimnookie.pendown
  22. angelino = Turtle()
  23. angelino.color('black')
  24. angelino.shape('turtle')
  25. angelino.penup()
  26. angelino.goto(-160, 10)
  27. angelino.pendown
  28. for movement in range(100):
  29. prodd.forward(randint(1,5))
  30. coute.forward(randint(1,5))
  31. jimnookie.forward(randint(1,5))
  32. angelino.forward(randint(1,5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement