Factorial
Write factorial(n) that returns n! — the product of every integer from 1 to n. factorial(0) is 1. Solve it with a or with , your choice.
Examples
factorial(5) → 120
Exercise
3 checksFactorial
def factorial(n):
...
print(factorial(5))
Press Run to try your code, then Check answer to grade it.