Which of these is a correctly written dictionary?
With colors = {"apple": "red", "banana": "yellow"}, what does colors["banana"] give?
Two keys in the same dictionary may be identical.
Circle one: True False
A program holds forecasts as a list of dicts and must total the "precip" field. What is the shape of the code?
In counts[word] = counts.get(word, 0) + 1, what happens on a word seen first?
codes = {"US": 1, "IN": 91} maps countries to codes. The task is now to find the country for code 91. What is the fix?
A coach stores race finishing order and asks what sits third. A friend proposes a dictionary keyed by runner name. Why is a list the better fit?
A tally loop crashes on new words with counts[word] = counts[word] + 1. Which single change fixes it while keeping the loop?