Guided pathThis is part of Understand Transformers & BERTBack to the path

Dictionaries — a mini table

P40.lists-and-tables.02 · Audience: guest, language-pro, it-ml · Prerequisites: Lists — a row of things

Real LLM grading for this pageLLM grading (this page):

Tally the words in a paragraph on paper and you naturally draw a two-column table: each word once, a running count beside it. This module gives that table its code name — the dictionary — the shape the whole discipline builds toward, one idea at a time.

Step 1 / 3A mini table (key → value)
ⓘ Concept: Each key maps to a value
A dictionary maps a key to a value, written with curly brackets: {"the": 4, "cat": 2}. Your paper tally is a dictionary: the word is the key, its count is the value.

Why it matters — A tally, a translation memory, a term-to-definition list — all of these are key-to-value tables. The dictionary is the shape a language professional reaches for most.

Ask the mentor about this module

Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.

Ctrl/Cmd + Enter to send

🎓 Practice ladder

1 graded rung · ~6 min

Your turn: work with a small word tally — look up a count, add a word that appeared twice, and count how many different words the table now holds. Press Run. This is the shape the P42 capstone grows into a full word tally.

Explorer rung — a word tally in a dictionary

Loading exercise…