Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- t = turtle.Turtle()
- t.shape('turtle')
- n = int(turtle.textinput(u"Введите количество лепестков.", "Введите количество окружностей: "))
- x = 1
- def flower(x):
- while x <= n:
- t.circle(50)
- t.left(360 / n)
- x += 1
- flower (x)
- turtle.exitonclick()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement