Robotics & Artificial Intelligence

Which operation can be performed on both lists and tuples?

  1. Append elements
  2. Insert elements
  3. Access elements
  4. Delete elements

Python List Manipulation

1 Like

Answer

Access elements

Reason — Both lists and tuples allow accessing their elements using index values, whereas operations like appending, inserting, or deleting elements are not permitted in tuples because they are immutable.

Answered By

1 Like


Related Questions