Use issuperset to check if a set is super set of another

Is super set

The issuperset method tell if a set is a super set for another set.


a = set([1, 2, 3]) #   w w w .j  a  v  a  2s. co m
b = set([2, 3, 4]) 
c = a & b 
print c.issuperset(a)
print c 




















Home »
  Python »
    Data Types »




Data Types
String
String Format
Tuple
List
Set
Dictionary