Q. What will be the output of this code?
Code:
x = {1, 2, 3, 2}
print(len(x))
β
Correct Answer: (A)
3
Explanation: Sets do not allow duplicates. The set becomes {1, 2, 3}, which has length 3.