Python: how to work with sets in python?

Example:

set1 = {1, 2, 3, 4}
Sets are unordered collections of unique items.

Solution:

set2 = {3, 4, 5, 6} union_set = set1.union(set2)

Beginner's Guide to Python