Dictionaries · Match Terms to Definitions

Read — build a mental model L1 Knowledge Atoms ~2 min

Match the dictionary vocabulary

Match each term to the definition that fits it. The code is there so you can see what each term refers to; one definition fits no term.

stock = {"apples": 5, "pears": 2}
print(stock["apples"])
stock["plums"] = 7

Definitions

  1. One key together with the value it labels
  2. Getting a value by supplying its key, as stock["apples"] does
  3. The label used to look an entry up
  4. The data stored under a key
  5. The position number of an item in a list
  6. The error raised when a key that is not in the dictionary is looked up

Choose the definition for each term

Each definition fits at most one term, and at least one definition fits none.

Why this activity was chosen
  • Bloom level: L1 Knowledge: Pair each technical term with the definition that fits it.
  • Block Model level: Atoms (step 1 of 4): individual syntax elements: names, operators, keywords and values.
  • Misconception targeted: shown after you answer, so it does not give the answer away.

Recall of vocabulary is the base of the taxonomy, and matching tests several related terms at once, including the pairs novices mix up. The terms are anchored to a short code fragment so each definition can be checked against something concrete, and one extra definition fits no term so the last pair cannot be answered by elimination.

AI’s role here: AI may point at the part of the code a term refers to. It must not reveal the pairing, because retrieving the link is the skill.