Python - set issubset()


Python tip:

You can use .issubset() to check whether the second set contains the first one.

👇

winners = {"John", "Marry"}
players = {"Daisy", "John", "Bob", "Marry"}

print(winners.issubset(players))
# => True