What is the value of x, if x = math.factorial(0) ?
1
0
Error
None of these
Answer
1
Reason — The math.factorial() function returns the factorial of a non-negative integer. By definition, the factorial of 0 is 1. Therefore, math.factorial(0) returns 1.