from TurtleWorld import *
import math
bob = Turtle()
print(bob)
draw_circle(turtle, r):
d = r*2
c = d*math.pi
degrees = 360/25
length = c // 25
for i in range(25):
fd(turtle, length)
rt(turtle, degrees)
draw_circle(bob, 25)
wait_for_user()
The problem in on line 7:
draw_circle(turtle, r):
The compiler only tells me that there is a syntax error and highlights the colon at the
end of that line.
I’m sure I’m missing something simple, but the code looks right to me.
in python, we define functions using the
defkeyword.. like