Commit 416ec2e6 by BellCodeEditor

save project

parent af6ea2aa
Showing with 14 additions and 3 deletions
import turtle import turtle
pen = turtle.Pen() pen = turtle.Pen()
pen= pen.pencolor("red")
long=1 long=1
for i in range(300): for i in range(100):
pen.forward(long) pen.forward(long)
pen.right(91) pen.right(91)
long+=3 long+=1
for i in range(100):
pen.pencolor("blue")
pen.forward(long)
pen.right(91)
long+=1
for i in range(100):
pen.pencolor("yelllow")
pen.forward(long)
pen.right(91)
long+=1
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