I have this code:
def rollBox(length, numDivisions, count):
Angle = 90/numDivisions
if count == 0:
return
elif numDivisions == 0:
rollBox(length, numDivisions, count - 1)
else:
square(length)
turtle.right(Angle)
rollBox(length, numDivisions - 1, count)
Is there any way to still decrease the 'numDivisions' parameter to zero while still keeping its original value? I don't know if that makes sense, but I don't want the original value to change because I want the turtle to rotate at the same angle each time. I'm getting a divide by zero error.