Commit 1b62c7d0 by BellCodeEditor

save project

parent 1c31c746
Showing with 3 additions and 1 deletions
...@@ -2,7 +2,9 @@ import turtle ...@@ -2,7 +2,9 @@ import turtle
pen=turtle.Pen() pen=turtle.Pen()
i=1 i=1
a=91 a=91
for i in range(1,300,10): colors=["red","orange","yellow","green"]
for i in range(1,300,1):
pen.color(colors[i%4])
pen.forward(i) pen.forward(i)
i+=1 i+=1
pen.right(a) pen.right(a)
......
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