Commit c1242660 by BellCodeEditor

save project

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