CBSE Class 11 Informatics Practices Question 23 of 62

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").