<filename>dataStructure/ds_set.py
bri = set(['brazil', 'russia', 'india'])
print("india" in bri)
print("usa" in bri)
bric = bri.copy()
bric.add("china")
print(bric.issuperset(bri))
bri.remove('russia')
print(bri & bric)
<filename>dataStructure/ds_set.py
bri = set(['brazil', 'russia', 'india'])
print("india" in bri)
print("usa" in bri)
bric = bri.copy()
bric.add("china")
print(bric.issuperset(bri))
bri.remove('russia')
print(bri & bric)