What is the output of the following code ?
def factorial(number): if number == 0: return 1 else: return number*factorial(number-1) print(factorial(5))
This is an example for a recursive function.factorial function calls itself and generates the factorial of the number given
Comment here: