What is the expected behavior of the following program?
prin("Goodbye!")
- The program will output
("Goodbye!")
to the screen - The program will output
"Goodbye!"
to the screen - The program will output
Goodbye!
to the screen - The program will generate an error message on the screen
Explanation: The program will raise a NameError exception, because Python cannot recognize the name prin. Python doesn’t know that you’re most probably trying to use the word print, not prin.
More Questions: Python Essentials 1 – Module 1 Test
Please login or Register to submit your answer