Commit b92abc50 by BellCodeEditor

save project

parent 11284f22
Showing with 5 additions and 10 deletions
import turtle
pen = turtle.Pen()
pen.pencolor("red")
for i in range(1,100):
pen.forward(i)
pen.right(91)
for i in range(99,200):
pen.pencolor("blue")
pen.forward(i)
pen.right(91)
for i in range(199,300):
pen.pencolor("yelllow")
scree=turtle.Screen()
scree.bgcolor("black")
color=["red","white","yellow","pink"]
for i in range(1,300):
pen.pencolor(color[i%4])
pen.forward(i)
pen.right(91)
pen.hideturtle()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment