Open In App

Python-Quizzes | Python String Quiz | Question 18

Like Article
Like
Save
Share
Report

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




a = "This is a string"
print


(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


Last Updated : 18 Sep, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads