Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 3 what is the purpose of the print() function? shows a message…

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.

Explanation:

Brief Explanations

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.

Answer:

Shows a message on the screen.