Commit 3d6b7bc3 by BellCodeEditor

save project

parent 77655aaf
Showing with 7 additions and 5 deletions
import turtle
import random
screen=turtle.Screen()
screen.bgcolor("light blue")
sb=turtle.Pen()
......@@ -9,11 +10,11 @@ sb.hideturtle()
SB=turtle.Pen()
SB.pencolor("red")
SB.pensize(5)
len=random.randint(50,100)
SB.left(45)
SB.forward(100)
SB.circle(50,180)
SB.forward(2*len)
SB.circle(len,180)
SB.right(90)
SB.circle(50,180)
SB.forward(100)
SB.circle(len,180)
SB.forward(2*len)
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