What will be the output of the following code:
my_set = {1, 2, 3}
my_set.add(4)
print(my_set)
my_set.add(4)
print(my_set)
A. {1, 2, 3}
B. {4, 1, 2, 3}
C. {1, 2, 3, 4}
D. {3, 2, 1}
Answer: Option B

Join The Discussion