Commit dfb1039e by BellCodeEditor

auto save

parent d72840d5
Showing with 13 additions and 9 deletions
# import turtle as t
# t.speed(0)
# for i in range(300):
# t.forward(i)
# t.right(91)
# t.done()
import turtle as t import turtle as t
t.speed(100) t.bgcolor('black')
t.speed(0)
color=['red','blue','yellow','green'] color=['red','blue','yellow','green']
for i in range(300): for i in range(300):
t.pencolor('color[i%4]') t.pencolor(color[i%4])
t.forward(i) t.forward(i)
t.right(91) t.right(91)
t.done() t.done()
# import turtle
# turtle.speed(100)
# colors=["red","blue","yellow","green"]
# for i in range(300):
# turtle.pencolor(colors[i%4])
# turtle.forward(i)
# turtle.right(91)
# 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