Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- def polygon():
- for i in range(x):
- turtle.forward(y)
- turtle.left(360 / x)
- turtle.shape('turtle')
- x = 3
- r = 28.867513459481
- y = r * (2 * sin(pi / x))
- for i in range(10):
- polygon()
- turtle.right(360 / x + 0.5 * (180 - 360 / x))
- turtle.penup()
- turtle.forward(10)
- turtle.pendown()
- turtle.left(360 / x + 0.5 * (180 - 360 / x))
- x += 1
- r += 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement