Python-Quizzes | Python String Quiz | Question 18
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