def recur_factorial(n):
    """Function to return the factorial of a number using recursion"""
if n == 1:
    return n
else:
    return n * recur_factorial(n - 1)
python - calling a function from within itself