Advertisement
plarmi

work11_2

Jun 2nd, 2023
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. import turtle
  2. t = turtle.Turtle()
  3. t.shape('turtle')
  4.  
  5. n = int(turtle.textinput(u"Введите количество лепестков.", "Введите количество окружностей: "))
  6. x = 1
  7. def flower(x):
  8.     while x <= n:
  9.         t.circle(50)
  10.         t.left(360 / n)
  11.         x += 1
  12.  
  13. flower (x)
  14. turtle.exitonclick()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement