Python Set discard() Method Example

Python Set discard() is a function that removes any specified element from a set. The discard() method only removes an element that is present in the Set.