Bird
0
0

What is the purpose of the print() function in a Python program?

easy📝 Conceptual Q1 of 15
Python - Basics and Execution Environment
What is the purpose of the print() function in a Python program?
ATo start a loop
BTo take input from the user
CTo create a new variable
DTo display output on the screen
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of print()

    The print() function is used to show messages or data on the screen.
  2. Step 2: Compare options with function purpose

    Only To display output on the screen matches the purpose of displaying output, others describe different actions.
  3. Final Answer:

    To display output on the screen -> Option D
  4. Quick Check:

    print() function purpose = display output [OK]
Quick Trick: print() shows messages on screen, not input or variables [OK]
Common Mistakes:
MISTAKES
  • Confusing print() with input()
  • Thinking print() creates variables
  • Assuming print() starts loops

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes