Result Size:
625 x 571
demo_ref_set_union2.py:
x = {"a", "b", "c"} y = {"f", "d", "a"} z = {"c", "d", "e"} result = x.union(y, z) print(result)
x
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'}