Q. What will be the output of this code?
Code:
a = {1, 2, 3}
b = {2, 3, 4}
print(a & b)
β
Correct Answer: (B)
{2, 3}
Explanation: `&` performs set intersection.