Design on February 11, 2023 Get link Facebook X Pinterest Email Other Apps # draw rainbow benzeneimport turtlecolors = ["red", "purple", "green", "orange","blue", "yellow"]t = turtle.Pen()turtle.bgcolor("black")t.speed(40)for x in range(360): t.pencolor(colors[x%4]) t.width(x//5) t.forward(x) t.left(59) turtle.done() Comments
Comments
Post a Comment