Q30Single correct3 Marks11 Dec 2022
What is the output of the following snippet of code? Select the most appropriate option.
```
def doSomething(D1, D2, priority):
if priority == 'second':
return doSomething(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 = doSomething({'a': 1, 'b': 2, 'd': 4}, {'a': 10, 'c': 3, 'b': 5}, 'second')
print(out)
```