The Wayback Machine - http://web.archive.org/web/20210303181212/https://www.geeksforgeeks.org/python-quizzes-python-string-quiz-question-18/
Skip to content
Related Articles

Related Articles

Python-Quizzes | Python String Quiz | Question 18
  • Last Updated : 18 Sep, 2020

Question 18: What is the output of the following program?




a = "This is a string"
print a 


(A) This is a string
(B) a
(C) “This is a string”
(D) Error


Answer: (D)

Explanation: Notice that the “a” variable in the print statement is missing a parenthesis which would lead to the SyntaxError: Missing parentheses in call to ‘print’.

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Recommended Articles
Page :