Q. What will be the output of the following code snippet?
Code:
dict1 = {'first' : 'sunday', 'second' : 'monday'}
dict2 = {1: 3, 2: 4}
dict1.update(dict2)
print(dict1)
β
Correct Answer: (A)
{'first': 'sunday', 'second': 'monday', 1: 3, 2: 4}