OverIQ.com
Run (or Hit F9)
A = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} B = {1, 2, 3} print(A.issubset(B)) # Is A subset of set B? print(B.issubset(A)) # Is B subset of set A? print(B.issuperset(A)) # Is B superset of set A? print(A.issuperset(B)) # Is A subset of set B?