pop() - Removes an element from the set

Removes a random element from the set.

Example

Python
print('--------')
laptopComponents = {'memory', 'processor', 'SSD', 'camera', 'keyboard'}
print(laptopComponents.pop())
print(laptopComponents.pop())
print(laptopComponents.pop())

Output

SSD
processor
camera