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