Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 25)
25.
Which method is used to remove and return the last element from a set?
set.pop()
set.remove_last()
set.delete_last()
set.discard_last()
Answer: Option
Explanation:
The pop() method removes and returns an arbitrary element, which is the last element in a set.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.