LogiQuest
Back to Dictionaries
8

What is the output of the following code?

d1 = {'a': 1}
d2 = {'b': 2, 'a': 9}
d1.update(d2)
print(d1)
Hard

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.