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?
- A.
append
- B.
pop
- C.
index
- 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.