KnowledgeBoat Logo
|

Informatics Practices

Assertion (A): List is mutable data type.

Reasoning (R): In-place change is not possible in list elements.

  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 List Manipulation

2 Likes

Answer

A is true but R is false.

Explanation
In Python, list is an mutable data type, i.e., values in the list can be modified. In-place changes are possible in list elements. We can modify, add, or remove elements in a list directly.

Answered By

2 Likes


Related Questions