Log in
← All problems

Factorial

easyBasics10 XP

Return n! = 1 × 2 × … × n. By definition 0! is 1.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.