Python - set isdisjoint()
Python tip:
You can use
.isdisjoint()
to check whether the intersection of two sets is empty -- i.e., there are not elements that are in the first and second sets.👇
winners = {"Carl", "Dan"} players = {"Daisy", "John", "Bob"} print(players.isdisjoint(winners)) # => True