Q. Which method removes an item by value from a list?
Solution:
remove() deletes the first occurrence of a value, e.g., [1, 2].remove(1) leaves [2].
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
remove() deletes the first occurrence of a value, e.g., [1, 2].remove(1) leaves [2].
Strengthen Your Practice with our comprehensive question bank.