Exam-style question
Try this first
Represent the document "Blue blue bird" as a dictionary, ignoring letter case. State the key-value pair for each distinct word and explain what the values represent.
Answer and explanation
Concise answer
{"blue": 2, "bird": 1}.
Why this is correct
Each distinct word becomes a key. Its associated value is the number of times that word occurs in the document. The two instances of "Blue" and "blue" are treated as the same word because letter case is ignored.
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.
