# ___PYTHON___ # Finding factorial of a number: userInput = int(input("Enter an integer: ")) def factorial(n): if n == 0 or n == 1: return 1 else : return n * factorial(n - 1) x = factorial(userInput) print(x)