Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 54)
54.
What does the list.pop() method do without providing an index?
Removes the last element from the list.
Removes the first element from the list.
Raises an error as an index is required.
Removes all occurrences of a specific element.
Answer: Option
Explanation:
Without providing an index, pop() removes and returns the last element from the list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.