import turtle t=turtle.Pen() colors=["red","yellow","blue","green","orange","purple","white","gray"] #sides=6 sides=int(turtle.numinput("a=",4,1,4)) for x in range(360): t.pencolor(colors[x%sides]) t.forward(x*3/sides+x) t.left(360/sides+1) t.width(x*sides/200)