Objective
Implement a function that returns the factorial of n, the product of every integer from 1 to n, with the factorial of 0 defined as 1.
Steps
$ factorial(5)
120
$ factorial(0)
1
$ factorial(-3)
-1
Expected files
Allowed functions
None. Write every helper yourself.

Objective
Implement a function that returns the factorial of n, the product of every integer from 1 to n, with the factorial of 0 defined as 1.
Steps
$ factorial(5)
120
$ factorial(0)
1
$ factorial(-3)
-1
Expected files
Allowed functions
None. Write every helper yourself.

Tests
Run the tests to grade your code