Python Code to find the factorial of given number using recursion

def fact(n):
    if n<1:
        return 1
    else:
        return n* fact(n-1)

Comments