Merging one set into another set (update)



examples/sets/merge_sets.py
objects  = set(['Mars', 'Jupiter', 'Saturn'])
internal = set(['Mercury', 'Venus', 'Earth', 'Mars'])

objects.update(internal)
print(objects)
print(internal)

{'Mars', 'Earth', 'Jupiter', 'Saturn', 'Mercury', 'Venus'}
{'Earth', 'Mars', 'Mercury', 'Venus'}