Result Size:
625 x 571
demo_ref_set_intersection_update2.py:
x = {"a", "b", "c"} y = {"c", "d", "e"} z = {"f", "g", "c"} x.intersection_update(y, z) print(x)
x
x
=
{
"a"
,
"b"
,
"c"
}
y
=
{
"c"
,
"d"
,
"e"
}
z
=
{
"f"
,
"g"
,
"c"
}
x
.
intersection_update
(
y
,
z
)
print
(
x
)
C:\Users\My Name>python demo_set_intersection_update2.py
{'c'}