import turtle turtle.setup(650,350,200,200) turtle.penup() turtle.fd(-50) turtle.pendown() turtle.pensize(2) turtle.pencolor("purple") a=1 for i in range(10): turtle.fd(5*a) turtle.seth(90) a=a+1 turtle.fd(5*a) turtle.seth(180) a=a+1 turtle.fd(5*a) turtle.seth(270) a=a+1 turtle.fd(5*a) turtle.seth(0) a=a+1