Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 38)
38.
Which method is used to remove a specific element from a set, raising an error if the element is not present?
set.remove(element)
set.discard(element)
set.exclude(element)
set.delete(element)
Answer: Option
Explanation:
The remove() method removes a specific element, raising an error if the element is not present.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.