issubset() - Returns whether another set contains this set or not

Returns True if the source set is contained in the other set.

Example

Python
desktopComponents = {'memory', 'processor'}
laptopComponents = {'memory', 'processor', 'SSD', 'camera', 'keyboard'}
desktopIsSubset = desktopComponents.issubset(laptopComponents)
laptopIsSubset = laptopComponents.issubset(desktopComponents)
print(f'Desktop computer components are a subset of a laptop computer components: {desktopIsSubset}')
print(f'Laptop computer components are a subset of a desktop computer components: {laptopIsSubset}')

Output

Desktop computer components are a subset of a laptop computer components: True
Laptop computer components are a subset of a desktop computer components: False