Checks if one set is a subset or superset of another set. If found, delete all elements from that set
Given:
Expected Output:
First set is subset of second set - True
Second set is subset of First set - False
First set is Super set of second set - False
Second set is Super set of First set - True
First Set set()
Second Set {67, 73, 43, 48, 83, 57, 29}
Hint:
Use the below methods of a set class
issubset()issuperset()clear()Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer