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: Implementing a Queue in Python Using ListsDateMay 19, 2016In relation toPythonImplementing Stacks in PythonDateMay 18, 2016In relation toPythonUsing Stacks to Reverse Four LettersDateMay 18, 2016In relation toPython