math module से factorial(5) का output क्या होगा?
What will be the output of factorial(5) from the math module?
A
120
B
5
C
error
D
statement only
Explanation
-
English:
math.factorial(5)calculates 5! (5 factorial), which is:5 × 4 × 3 × 2 × 1 = 120 -
हिंदी:
math.factorial(5)का मतलब है 5 का factorial, यानी:5 × 4 × 3 × 2 × 1 = 120
✅ Example:
import math
print(math.factorial(5)) # Output: 120
Correct Answer: A) 120