SHARE
TWEET

CSH2012 twoTurtles.py

calcpage Mar 19th, 2013 280 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2. #TwoTurtles.py  MrG     2013.0313
  3. import turtle
  4. wn = turtle.Screen()
  5. wn.bgcolor("lightgreen")
  6. wn.title("Tess & Alex")
  7.  
  8. tess = turtle.Turtle()
  9. tess.color("hotpink")
  10. tess.pensize(5)
  11. alex = turtle.Turtle()
  12.  
  13. tess.forward(80)
  14. tess.left(120)
  15. tess.forward(80)
  16. tess.left(120)
  17. tess.forward(80)
  18. #tess.left(120)
  19. #tess.right(180)
  20. #tess.forward(80)
  21.  
  22. alex.forward(50)
  23. alex.left(90)
  24. alex.forward(50)
  25. alex.left(90)
  26. alex.forward(50)
  27. alex.left(90)
  28. alex.forward(50)
  29. alex.left(90)
  30.  
  31. turtle.mainloop()
RAW Paste Data
Top