Python Set Intersection
Python tip:
You can use
.intersection()
to get a new set containing unique elements that are present inside two sets.👇
winners = {"John", "Marry"} players = {"Daisy", "John", "Bob", "Marry"} print(winners.intersection(players)) # => {'John', 'Marry'}