Source Code:
(back to article)
A = {1, 2, 3} B = {2, 3, 4} C = {3, 4, 5} print(A.issubset(B)) # False print(A.issubset(A.union(B))) # True print(A.issuperset(B)) # False print(A.union(B).issuperset(A)) # True
Result:
Report an issue