What is the expected behavior of the following program?
print("Hello!")
- The program will output
("Hello!")
to the screen - The program will generate an error message on the screen
- The program will output
Hello!
to the screen - The program will output
"Hello!"
to the screen
Explanation: The program will print the string ‘Hello!’ to the console. The print function simply prints the specified message, in our case 'Hello!'
, to the screen.
More Questions: Python Essentials 1 – Module 1 Test
Please login or Register to submit your answer