Run ❯
Get your
own Python
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
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
)
{'b', 'a', 'f', 'c', 'd', 'e'}