Commit 0b43f5c7 by BellCodeEditor

save project

parent 497e7601
Showing with 15 additions and 0 deletions
......@@ -27,3 +27,4 @@ for i in range(1,300)
pen.right(91)
turtle.hideturtle()
turtle.done
import turtle
pen = turtle.pen()
screen=turtle.Screen()
screen.bgcolor("black")
colors=["green","red","orange","yellow"]
for i in range(1,300):
pen.pencolor(colors[i%4])
pen.forward(i)
pen.right(91)
turtle.hideturtle()
turtle.done()
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