how to join two sets python code example
Example 1: join two set in python
set1 = {1, 4, 5, 6}
set2 = {1, 2, 3}
set3 = set1.union(set2)
print(set3)
Example 2: phyton merge two sets
set1 = {"a", "b" , "c"}
set2 = {1, 2, 3}
set3 = set1.union(set2)