QUESTION IMAGE
Question
question 3
what is the purpose of the print() function?
shows a message on the screen.
asks the user to type something.
tells the computer what to do.
makes the code repeat.
In Python, the print() function is used to display text or other output on the screen. For example, print("Hello World") will show "Hello World" on the screen. The option "Asks the user to type something" is what the input() function does. The option "Tells the computer what to do" is too general as many functions and statements tell the computer what to do. The option "Makes the code repeat" is related to loops like for or while loops.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
Shows a message on the screen.