KnowledgeBoat Logo
LoginJOIN NOW

Computer Science

Assertion (A): In Python, tuple is an immutable sequence of data.

Reasoning (R): Immutable means that any change or alteration in data is mentioned in the same place. The updated collection will use the same address for its storage.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

Python Tuples

1 Like

Answer

A is true but R is false.

Explanation
In Python, tuples are immutable or unmodifiable, so once a tuple is created, we cannot add, change, or update its elements.

Answered By

2 Likes


Related Questions