Commit 65d789ba by BellCodeEditor

save project

parent 8acbee24
Showing with 5 additions and 4 deletions
import turtle import turtle
len=60
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
...@@ -9,10 +10,10 @@ penl=turtle.Pen() ...@@ -9,10 +10,10 @@ penl=turtle.Pen()
penl.pensize(5) penl.pensize(5)
penl.pencolor("red") penl.pencolor("red")
penl.left(45) penl.left(45)
penl.forward(100) penl.forward(2*len)
penl.circle(50,180) penl.circle(len,180)
penl.right(90) penl.right(90)
penl.circle(50,180) penl.circle(len,180)
penl.forward(100) penl.forward(2*len)
penl.hideturtle() penl.hideturtle()
turtle.done() 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