12
What is the output of the following code?
d = {'x': 10}
d.setdefault('x', 99)
d.setdefault('y', 5)
print(d)Medium
What is the output of the following code?
d = {'x': 10}
d.setdefault('x', 99)
d.setdefault('y', 5)
print(d)Log in to join the discussion.