1. Home
  2. Data Science
  3. Python
  4. What does the 'print' function do?

Added 5 Feb 2024

What does the 'print' function do?

  1. Display output on the screen Correct answer
  2. Perform mathematical calculations
  3. Create a loop
  4. Define a variable

Correct answer

A. Display output on the screen

18 views

MCQSEXAM

Explanation

The 'print' function is used to display output on the screen. It is a fundamental tool for showing results, messages, or any information during program execution.

Reference

https://www.w3schools.com/python/default.asp

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs