Q. What will be the output of the following code snippet?
Code:
s1 = {1, 2, 3, 4, 5}
s2 = {2, 4, 6}
print(s1 ^ s2)
β
Correct Answer: (B)
{1, 3, 5, 6}
s1 = {1, 2, 3, 4, 5}
s2 = {2, 4, 6}
print(s1 ^ s2)
You must be Logged in to update hint/solution