Advertisement
plarmi

work11_6

Jun 2nd, 2023
670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. import turtle
  2. t = turtle.Turtle()
  3. t.shape('turtle')
  4. n = int(turtle.textinput(u'Введите количество вершин', 'Введите количество вершин: '))
  5. def stars(n):
  6.     t.left(180 - (180 / n))
  7.     t.forward(200)
  8. x = 1
  9. while x <= n:
  10.     stars(n)
  11.     x += 1
  12. turtle.exitonclick()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement