Which out of the following Python functions/methods is commonly used in list…

2026

Which out of the following Python functions/methods is commonly used in list as well as tuple?

  1. A.

    append

  2. B.

    pop

  3. C.

    index

  4. D.

    remove

Attempted by 217 students.

Show answer & explanation

Correct answer: C

Lists and tuples are both sequence types in Python. While methods like append(), pop(), and remove() modify the object and are only available for mutable lists, the index() method searches for a value without modification. This makes index() compatible with both lists and tuples.

Explore the full course: Rssb Senior Computer Instructor