Commit c28cbb90 by BellCodeEditor

save project

parent 02078dda
Showing with 14 additions and 5 deletions
for i in range(1,i+1):
for j in range(1,i+1):
print(i, '*', j ,'=',(j*i),end=' ')
print()
\ No newline at end of file
import turtle
pen=turtle.Pen()
s=turtle.Screen()
s.bgcolor("Sky blue")
colors=["red","orange","yellow","green"]
pen.speed(10)
p=1
for i in range(300):
pen.forward(p)
p+=1
pen.right(0.99999999)
for i in range(1,300):
pen.forward(i)
pen.pencolor(colors[i%4])
pen.right(98)
pen.heading()
turtle.done()
......
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