Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 43)
43.
What will the list.pop(2) method do?
Removes the element at index 2.
Removes the element with the value 2.
Raises an error because index 2 does not exist.
Removes all occurrences of the value 2.
Answer: Option
Explanation:
The pop() method removes and returns the element at the specified index.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.