Calculating Factorial Using Recursion
def fact(num): if num==1: return 1 else: return num*fact(num-1) print(fact(int(input("Please enter the number : "))))
Official Site of KSoftlabs
def fact(num): if num==1: return 1 else: return num*fact(num-1) print(fact(int(input("Please enter the number : "))))