Computer Science
Assertion. """A Sample Python String""" is a valid Python String.
Reason. Triple Quotation marks are not valid in Python.
Python Funda
2 Likes
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.
Answered By
1 Like
Related Questions
In a nested loop, a break statement terminates all the nested loops in one go.
Assertion. Assigning a new value to an int variable creates a new variable internally.
Reason. The int type is immutable data type of Python.
Assertion. If and For are legal statements in Python.
Reason. Python is case sensitive and its basic selection and looping statements are in lower case.
Assertion. if and for are legal statements in Python.
Reason. Python is case sensitive and its basic selection and looping statements are in lower case.