for in range( , )set add(ifor in range( , )set add(jset { set { #union of set and set set set set same as set union(set print('union of set set set 'set union of set set set { #intersection of set set set set set same as set intersection(set print('intersection of set and set set 'set intersection of set and set set { checking relation between set and set if set set set issuperset(set print('set is superset of set 'elif set set #set issubset(set print('set is subset of set 'else#set =set print('set is same as set 'set is superset of set difference between set and set set set set print('elements in set and not in set set 'set elements in set and not in set set { check if set and set are disjoint sets if set isdisjoint(set )