LogiQuest
Back to Dictionaries
12

What is the output of the following code?

d = {'x': 10}
d.setdefault('x', 99)
d.setdefault('y', 5)
print(d)
Medium

Discussion (0)

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

Log in to join the discussion.