How to check if a set is a superset of a set in Python

1 Answer

0 votes
st1 = {"a", "b", "c", "x"}
st2 = {"c", "x"}

st = st1.issuperset(st2)

print(st)


'''
run:

True

'''

 



answered Dec 11, 2017 by avibootz

Related questions

1 answer 142 views
1 answer 162 views
4 answers 304 views
304 views asked Apr 24, 2021 by avibootz
1 answer 181 views
1 answer 161 views
...