What Will Be The Output Of The Following Python Codep Pre #802
What will be the output of the following Python code?</p> <pre><code class="language-python"> from math import factorial print(math.factorial(5)) </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Modules - Python Modules - Quiz No.2.
What will be the output of the following Python code?
from math import factorial print(math.factorial(5))
120
Nothing is printed
Error, method factorial doesn’t exist in math module
Error, the statement should be: print(factorial(5))