symmetric_difference(ts returns set of all items that are in or tbut not both union(treturns set of all items in or in the preceding tablethe parameter can be any python object that supports iteration and all methods are available to both set and frozenset objects it is important to be aware that the operator versions of these methods require their arguments to be setswhereas the methods themselves can accept any iterable type for examples [ , , ]for any set swill generate an unsupported operand type using the equivalent difference([ , , ]will return result mutable set objects have additional methodsdescribed in the following tablemethod description add(itemadds item to has no effect if item is already present clear(removes all items from difference_update(tremoves all items in that are also in discard(itemremoves item from intersection_update(tremoves all items from that are not in the intersection of and pop(returns and removes an arbitrary item from remove(itemremoves item from symetric_difference_update(tremoves all items from that are not in the symmetric difference of and update(tadds all the items in an iterable object to