Commit 586085ee by BellCodeEditor

save project

parent 1536a5df
Showing with 17 additions and 2 deletions
...@@ -2,9 +2,23 @@ import turtle ...@@ -2,9 +2,23 @@ import turtle
pen = turtle.Pen() pen = turtle.Pen()
a = 1 a = 1
pen.speed(0)
for i in range(300): for i in range(300):
pen.forword(a) pen.color("red")
pen.forward(a)
pen.right(91) pen.right(91)
a += 1 a += 0.5
pen.color("yellow")
pen.forward(a)
pen.right(91)
a += 0.5
pen.color("green")
pen.forward(d)
pen.right(91)
d += 0.5
pen.color("blue")
pen.forward(d)
pen.right(91)
d += 0.5
pen.hideturtle() pen.hideturtle()
turtle.done() 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