Question PRG-PY-0044
MediumWhat is the output of this program?
d = {"a": 1, "b": 2}
d2 = {**d, "b": 3, "c": 4}
print(d2, len(d))
- A.
{'a': 1, 'b': 2, 'c': 4} 2
- B.
{'a': 1, 'b': 3, 'c': 4} 2
- C.
Sign up free to see the answer and a step-by-step explanation.