CBSE Class 11 Informatics Practices Question 6 of 20

Getting Started with Python — Question 4

Back to all questions
4
Question

Question 4

Identify the correct print() statement:

  1. print(Hello)
  2. print("Hello")
  3. print('Hello")
  4. print("Hello')
Answer

print("Hello")

Reason — In Python, when using the print() function, strings must be enclosed in matching pairs of either single (') or double quotes ("). Therefore, the correct statement is print("Hello").

Get the Bright Tutorials app Stuck on a question? Ask Bright Buddy — your AI tutor — for step-by-step help in the app.