Return factorial of a given number
Implement factorial(n) to return the product of every integer from 1 through n. Define 0! as 1 and assume the input is a non-negative integer.
Function signature: def factorial(n):
Input: An integer n. Output: The integer n!.
def factorial(n):