Is a set a superset?
Write a Python program to check whether a set is a superset of another.
{1, 2, 3, 4}, {2, 3}True False
Approach
>=orissuperset().
Solution
print({1, 2, 3, 4} >= {2, 3}, {1, 2} >= {2, 3})True False
Learn the concept
New to this topic? Read the lesson, then come back.