add() - Adds an element to the set

Adds an item to a set.

Example

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

Output

{'keyboard', 'memory', 'processor', 'SSD'}