function in a function python recursion code example
Example: python recursion print statement
def recursive_method(n):
if n == 1:
return 1
else:
return n * recursive_method(n-1)
def recursive_method(n):
if n == 1:
return 1
else:
return n * recursive_method(n-1)