I am a beginner to programming and in this case cannot understand why this Python code doesn't work as expected.
I am trying to use recursion by calling a function within a function; calling the function n times, and reducing n by 1 to 0 with each loop at which point it will stop.
Instead my code prints 'freak' once, then I get a 'maximum recursion depth' error message.
def print_m():
print ('freak')
def do_n(arg, n)):
if n >= 0:
print (do_n(arg,n))
n = n - 1