import turtle turtle.speed(15) colors =['red','orange','blue','green','pink','yellow','white','red'] for i in range(250): turtle.pencolor(colors[i%8]) turtle.forward(i) turtle.left(100) turtle.done()