merging two sets python code example Example: phyton merge two sets set1 = {"a", "b" , "c"} set2 = {1, 2, 3} set3 = set1.union(set2)