Advertisement
ZEdKasat

Danial's Trial

Feb 12th, 2022
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. from turtle import *
  2.  
  3. tom = Turtle()
  4.  
  5. tom.color('red')
  6. tom.pensize(3)
  7.  
  8. # sides = 6
  9. # for y in range(sides):
  10. #   tom.forward(100)
  11. #   tom.left(360/sides)
  12.  
  13. # r = 25
  14. # for x in range(10):
  15. #   tom.circle(r)
  16. #   r = r + 25
  17.  
  18. sides = 5
  19. l = 10
  20. for y in range(sides*5):
  21.   tom.forward(l)
  22.   tom.left(180-(180/sides))
  23.   l = l + 10
  24.  
  25. done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement