Robotics & Artificial Intelligence

Identify the operation which is NOT allowed on a Python tuple.

  1. Accessing using an index.
  2. Converting tuple into a list.
  3. Appending a new element.
  4. Using len().

Python Tuples

2 Likes

Answer

Appending a new element.

Reason — A tuple is immutable, which means its elements cannot be modified, added, or removed after creation. Therefore, appending a new element is not allowed in a Python tuple.

Answered By

2 Likes


Related Questions