Commit 93ccad98 by BellCodeEditor

save project

parent 7566f9ab
Showing with 18 additions and 3 deletions
import turtle import turtle
pen=turtle.Pen() # pen=turtle.Pen()
pen.write("1*1=2\n1*2=2 2*2=4\n1*3=3 2*3=6 3*3=9\n1*4=4 2*4=8 3*4=12 4*4=16\n1*5=5 2*5=10 3*5=15 4*5=20 5*5=25\n1*6=6 2*6=12 3*6=18 4*6=24 5*6=30 6*6=36\n1*7=7 2*7=14 3*7=21 4*7=28 5*7=35 6*7=42 7*7=49\n",font=("Times",10,"normal")) # pen.write("1*1=2\n1*2=2 2*2=4\n1*3=3 2*3=6 3*3=9\n1*4=4 2*4=8 3*4=12 4*4=16\n1*5=5 2*5=10 3*5=15 4*5=20 5*5=25\n1*6=6 2*6=12 3*6=18 4*6=24 5*6=30 6*6=36\n1*7=7 2*7=14 3*7=21 4*7=28 5*7=35 6*7=42 7*7=49\n",font=("Times",10,"normal"))
pen.hideturtle() # pen.hideturtle()
# turtle.done()
pen1=turtle.Pen()
pen1.pencolor("pink")
pen1.pensize(50)
pen1.fillcolor("red")
pen1.begin_fill()
pen1.left(45)
pen1.forward(180)
pen1.circle(90,180)
pen1.right(90)
pen1.circle(90,180)
pen1.forward(180)
pen1.end_fill()
pen1.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