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

Join The Discussion