What is the output of the following code:
my_dict = {'a': 1, 'b': 2, 'c': 3}
my_dict.pop('b')
print(my_dict)
my_dict.pop('b')
print(my_dict)
A. {'a': 1, 'b': 2, 'c': 3}
B. {'a': 1, 'c': 3}
C. {'a': 1, 'b': 2}
D. {'c': 3}
Answer: Option B
Join The Discussion