Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from mobilechelonian import Turtle # импортируем модуль для рисования
- t = Turtle()
- t.speed(5)
- t.pencolor('magenta')
- def left_turn():
- for i in range(10):
- t.forward(15)
- t.left(9)
- def petal():
- left_turn()
- t.left(90)
- left_turn()
- petals_qty = int(input("How many petals ?"))
- for _ in range(petals_qty):
- petal()
- t.left(180-round(180/petals_qty, 0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement