SHARE
TWEET

Turtle1.py

richbpark Jan 21st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from turtle import Turtle
  2.  
  3. T1 = Turtle()
  4.  
  5. def drawCircle(name, radius, color):
  6.     name.color(color)
  7.     name.dot(radius *2)
  8.    
  9. drawCircle (T1, 150, "blue")
  10. drawCircle (T1, 100, "red")
  11. drawCircle (T1, 50, "yellow")
  12.  
  13. T1.penup()
  14. T1.forward(200)
  15. T1.pendown()
  16.  
  17. drawCircle (T1, 150, "blue")
  18. drawCircle (T1, 100, "red")
  19. drawCircle (T1, 50, "yellow")
  20.  
  21. T1.penup()
  22. T1.back(400)
  23. T1.pendown()
  24.  
  25. drawCircle (T1, 150, "blue")
  26. drawCircle (T1, 100, "red")
  27. drawCircle (T1, 50, "yellow")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top