30 seconds of pythonBack to Home
Calculates the factorial of a number.
num is less than or equal to
Otherwise, return the product of
num and the factorial of
num - 1.
Throws an exception if
num is a negative or a floating point number.