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