Q34Single correct3 Marks7 Aug 2022
What is the output of the following snippet of code? Select the most appropriate option.
```
def merge(D1, D2, priority):
if priority == "second":
return merge(D2, D1, "first")
D = dict()
for key in D1:
value = D1[key]
D[key] = value
for key in D2:
value = D2[key]
if key not in D:
D[key] = value
return D
out = merge({'a': 1, 'b': 2, 'd': 4},
{'a': 10, 'c': 3, 'b': 5},
'second')
print(out)
```