Skip to content
Related Articles

Related Articles

Improve Article

Python-Quizzes | Python String Quiz | Question 18

  • Last Updated : 18 Sep, 2020
Geek Week

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

a = "This is a string"

(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 :