The set object provides methods to operate on set values.
x = set('abcde') y = set('bdxyz') z = x.intersection(y) # Same as x & y print( set(['b', 'd']) ) z.add('TEST') # Insert one item print( z ) z.update(set(['X', 'Y'])) # Merge: in-place union print( z ) z.remove('b') # Delete one item print( z )