Python set issuperset() method
Check whether this set contains every item of the other.
Syntax
set.issuperset(other) / a >= b
Parameters
| other | the other set |
Return value
bool
Example
Code
print({1, 2, 3} >= {1, 2}, {1, 2} >= {1, 5})
Output
True False
Related
Learn it step by step in the free lesson Dictionaries & Sets, with exercises that check your answers.