Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 61)
61.
What does the list.remove(42) method do in Python?
Removes the element with the value 42.
Removes the first occurrence of 42.
Raises an error if the element 42 is not found.
Removes all occurrences of 42.
Answer: Option
Explanation:
The remove() method in Python lists removes the first occurrence of a specific element.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.