The &
operator computes the intersection of two sets, a new set holding all of the elements
that are in both of the original two sets. For example, {1, 2} & {2, 3}
is {2}
.
Likewise, the |
operator computes a union, a new set with holding all of the elements in either
of the originals. For instance, {1, 2} | {2, 3}
is {1, 2, 3}
.
The ^
operator computes the symmetric difference of two sets, a new set holding all of the
elements in exactly one of the originals. For example, {1, 2} ^ {2, 3}
is {1, 3}
.
Finally, the -
operator computes an asymmetric difference, a new set holding all of the
elements that are in the first original set but not the second. For instance, {1, 2} - {2, 3}
is
{1}
.
Fill in the placeholders so that the actual outputs match the expected outputs.