Commit c1242660 by BellCodeEditor

save project

parent c6e9f495
Showing with 31 additions and 13 deletions
import turtle
q = turtle.Screen()
q.bgcolor("pink")
colors = ["red","yellow","blue","green"]
length = 10
pen = turtle.Pen()
pen.speed(0)
for i in range(400):
pen.pencolor(colors[i%4])
pen.forward(length)
length = length +1
pen.left(90)
turtle.done()
# import turtle
# q = turtle.Screen()
# q.bgcolor("pink")
# colors = ["red","yellow","blue","green"]
# length = 10
# pen = turtle.Pen()
# pen.speed(0)
# for i in range(400):
# pen.pencolor(colors[i%4])
# pen.forward(length)
# length = length +1
# pen.left(90)
# turtle.done()
for i in range(1,10):
for o in range(1,10):
print(i,'*',o,'=',i*o,end=" ")
print()
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