Commit 03da1530 by BellCodeEditor

save project

parent 860d95b1
Showing with 3 additions and 2 deletions
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=int(len)
len=screen.textinput("100","100") len=screen.textinput("100","100")
len=int(len) len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
......
...@@ -15,4 +15,5 @@ pen1.right(90) ...@@ -15,4 +15,5 @@ pen1.right(90)
pen1.circle(len,180) pen1.circle(len,180)
pen1.forward(2*len) pen1.forward(2*len)
turtle.done() turtle.done()
screen.bgcolor("red") screen.bgcolor("red")
\ 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