Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 7)
7.
Which of the following methods is used to remove and return an arbitrary element from a set?
set.remove(element)
set.discard(element)
set.pop()
set.delete(element)
Answer: Option
Explanation:
The pop() method removes and returns an arbitrary element from the set.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.