Advertisements
Advertisements
प्रश्न
Assertion (A): The expression (1, 2, 3, 4).append(5) in Python will modify the original sequence datatype.
Reason (R): The append() method adds an element to the end of a list and modifies the list in place.
पर्याय
Both A and R are True and R is the correct explanation for A.
Both A and R are True and R is not the correct explanation for A.
A is True but R is False.
A is False but R is True.
MCQ
विधान आणि तर्क
Advertisements
उत्तर
A is False but R is True.
Explanation:
- Assertion is false because tuples are immutable and do not have an
append()method. - Reason is true but it applies only to lists, not tuples.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
