isdisjoint() - Returns whether two sets have a intersection or not

Returns True if the two sets do not have any items in common. Returns False if the two sets have an item in common (the two sets have an intersection).

Example

Python
desktopComponents = {'memory', 'processor', 'hard drive'}
laptopComponents = {'memory', 'processor', 'SSD', 'camera', 'keyboard'}
inCommon = laptopComponents.isdisjoint(desktopComponents)
print(f'Desktop and laptop computers do NOT have components in common: {inCommon}')

desktopComponents = {'memory', 'processor', 'hard drive'}
mouseComponents = {'wheel', 'button', 'laser'}
inCommon = desktopComponents.isdisjoint(mouseComponents)
print(f'Desktop computers and optical mice do NOT have components in common: {inCommon}')

Output

Desktop and laptop computers do NOT have components in common: False
Desktop computers and optical mice do NOT have components in common: True