Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- ############## настройки
- t = turtle
- #t.shape('turtle')
- t.color('green')
- t.pensize(3)
- ############## программа
- sides = int(input())
- t.fillcolor('yellow') # выбор цвета для закрашивания замкнутой фигуры
- t.begin_fill() # начало закрашивания
- for i in range(1,sides+1):
- t.fd(10)
- t.lt(360/sides)
- t.end_fill() # окончание окрашивания
- ############# действия с окном по окончании
- #t.exitonclick()
- t.done()
Advertisement
Add Comment
Please, Sign In to add comment