Python Programming - Standard Libraries - Discussion

Discussion Forum : Standard Libraries - General Questions (Q.No. 9)
9.
Which method is used to remove an element from a set?
set.remove()
set.pop()
set.delete()
set.discard()
Answer: Option
Explanation:
The discard() method is used to remove a specified element from a set, if the element is present.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.