Commit 6e5f6064 by BellCodeEditor

auto save

parent 11889556
Showing with 13 additions and 0 deletions
...@@ -6,3 +6,15 @@ for i in range(1,500): ...@@ -6,3 +6,15 @@ for i in range(1,500):
pen.right(91) pen.right(91)
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
import turtle
pen = turtle.Pen()
colors=["red","green","yellow","orange"]
for i in range(1,500):
pen.pencolor(colors[i%4])
pen.forward(i)
pen.right(91)
pen.hideturtle()
turtle.done()
\ No newline at end of file
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