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
Python tip:
You can use .issubset() to check whether the second set contains the first one.
.issubset()
👇
winners = {"John", "Marry"} players = {"Daisy", "John", "Bob", "Marry"} print(winners.issubset(players)) # => True