(a) What will be the output of the following Python code?
from math import factorial
print (math.factorial (5))
(i) 120
(ii) Nothing is printed
(iii) Error, method factorial doesn't exist in math module
(iv) Error, the statement should be: print(factorial(5)
Answers
Answered by
0
The output of the following Python code will be Error, the statement should be printed (factorial(5).
What is phyton code and how is it written?
- In order to write a phyton code, first of all, an app named Thonny IDE has to be downloaded.
- After that install the required program on your computer by running the installer.
- Open the documents, go to file, and save it by writing the phyton code.
#SPj3
Similar questions