discard() - Remove the specified item

Removes the specified item from the set.  If the item does not exist, no exception is thrown.  Compare this to the remove function.

Example

Python
components = {'memory', 'processor', 'SSD'}
components.remove('SSD')
print(components)

Output

{'processor', 'memory'}