from turtle import Turtle int input angle 360 for in range forward 100

1
2
3
4
5
6
7
8
9
from turtle import *
a = Turtle()
n = int(input())
angle = 360/n
for i in range(n):
a.forward(100)
a.goto(0,0)
a.left(angle)
a.screen.mainloop()