Computer Science

Choose the correct statement(s).

  1. Both tuples and lists are immutable.
  2. Tuples are immutable while lists are mutable.
  3. Both tuples and lists are mutable.
  4. Tuples are mutable while lists are immutable.

Python Tuples

2 Likes

Answer

Tuples are immutable while lists are mutable.

Reason — Tuples can not be modified where as List can be modified.

Answered By

2 Likes


Related Questions