Advertisement
ZEdKasat

Basics Turtle

Mar 11th, 2022
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. from turtle import *
  2.  
  3. tom = Turtle()
  4.  
  5. # sides = 5
  6. # for x in range(sides):
  7. #   tom.forward(100)
  8. #   tom.left(180-(180/sides))  
  9.  
  10. tom.color("red")
  11. tom.pensize(3)
  12.  
  13. # radius = 25
  14. # for x in range(4):
  15. #   tom.circle(radius)
  16. #   radius = radius + 25
  17.  
  18.  
  19. # sides = 5
  20. # length = 10
  21. # for x in range(sides*5):
  22. #   tom.forward(length)
  23. #   tom.left(180-(180/sides))  
  24. #   length = length + 10
  25.  
  26.  
  27. for x in range(4):
  28.   tom.circle(35)
  29.   tom.penup()
  30.   tom.forward(45)
  31.   tom.pendown()
  32.  
  33. done()
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement