Calculating Factorial Using Recursion Kavinda 9 years ago def fact(num): if num==1: return 1 else: return num*fact(num-1) print(fact(int(input("Please enter the number : ")))) Share this: