# Import the turtle module import turtle as t # Create a function called movecircle() # that creates the main leg def movecircle(): t.right(turn) t.forward(50) # This is what unintentionally creates the inner circle. def moveinout(): # First it moves out, t.left(90) t.forward(50) # It moves in, t.left(180) t.forward(320) # Moves back out t.backward(270) # and continues the main circle. t.left(90) # Sets the number of sides to 18 s = 18 turn = 360 / s turn = int(turn) # Calls the turtle t = t.Turtle() # Moves to an appropiate location to start drawing # Because the circle is not centered # I have to do it myself t.penup() t.left(90) t.forward(150) t.right(90) t.pendown() # Loop that actually makes the circle for i in range(0, s): movecircle() moveinout()