Q. What is the output of the following code?
Code:
x = {1,2,3,3,2}
print(x)
β
Correct Answer: (A)
{1, 2, 3}
Explanation: Sets automatically remove duplicate values, so only {1,2,3} remains.