CBSE Class 12 Computer Science Question 2 of 105

Python Revision Tour — Question 2

Back to all questions
2
Question

Question 2

Assertion. """A Sample Python String""" is a valid Python String.

Reason. Triple Quotation marks are not valid in Python.

Answer

(c)

Assertion is true but Reason is false.

Explanation
A string literal is a sequence of characters surrounded by single or double or triple single quotes or triple double quotes.