Vidyalelo
Python · Q180

Module in Python

Programming · Python · question 180

Q180

What will be the output of the following Python code? from math import factorial print(math.factorial(5))

A.
120
B.
Nothing is printed
C.
Error, method factorial doesn't exist in math module
D.
Error, the statement should be: print(factorial(5))
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board