Commit b14ac1a3 by BellCodeEditor

save project

parent d629626c
Showing with 7 additions and 4 deletions
import turtle import turtle
le1 = 60
t = turtle.Pen() t = turtle.Pen()
p = turtle.Screen() p = turtle.Screen()
...@@ -12,14 +13,15 @@ t.pensize(10) ...@@ -12,14 +13,15 @@ t.pensize(10)
t.pencolor("red") t.pencolor("red")
t.goto(0,0) t.goto(0,0)
t.pendown() t.pendown()
t.left(45) t.left(45)
t.forward(100) t.forward(2*le1)
t.begin_fill() t.begin_fill()
t.circle(50,180) t.circle(le1,180)
t.right(90) t.right(90)
t.circle(50,180) t.circle(le1,180)
t.forward(100) t.forward(2*le1)
t.end_fill() t.end_fill()
t.hideturtle() t.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