Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- r = 20
- step = 20
- def polygon(n, r = 20):
- turtle.circle(r, 360, n)
- for i in range(3,13):
- polygon(i,r)
- # отступ
- turtle.penup()
- turtle.right(90)
- turtle.forward(step)
- turtle.left(90)
- turtle.pendown()
- r += step
- turtle.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment