demo_ref_set_union2.py:
x = {"a", "b", "c"} y = {"f", "d", "a"} z = {"c", "d", "e"} result = x.union(y, z) print(result)
C:\Users\My Name>python demo_set_union2.py
{'a', 'b', 'e', 'f', 'c', 'd'}