Exam-style question
Try this first
Given the dictionary {"grass": 1, "green": 2, "grows": 1, "the": 1}, which value is accessed by the key "green"?.
- A.1
- B.2
- C.3
- D.green
Answer and explanation
Concise answer
2
Why this is correct
The key "green" is associated with the value 2, so accessing that key returns 2.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
