EasyOutput prediction

Missing key: [] vs .get()

What does this code print?

d = {"a": 1}
print(d.get("b", 0))
print(d.get("a", 99))

← → arrow keys to navigate

Sign in to save your progress.

Missing key: [] vs .get() - Python Dictionaries Quiz | Unnested