import turtle t= turtle.Pen() t.speed(0) turtle.bgcolor('black') colours= ["blue","green","brown","yellow"] for x in range(100): t.forward(x) t.left(90) t.pencolor(colours[x % 4])