# Dictionaries > Ninth graders learn dictionaries — collections that store data as key-value pairs, letting you look up a value by its key instead of a position. They’re… **Computer Science** | **Grade 9** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g9-cs-dictionaries.html* Ninth graders learn dictionaries — collections that store data as key-value pairs, letting you look up a value by its key instead of a position. They’re ideal for things like names and scores. They explore the ideas, then build a dictionary. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Define a **dictionary**. - Use **keys & values**. - **Look up** & update. - Choose the right structure. How do you store data you need to look up by name? Project this and tap each. Have students explore dictionaries. ## 55 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Look It Up How would you store each student’s score so you can find it by name? #### 👩‍🏫 Teacher Moves - Pose the question. - Share ideas. - Set the goal. #### 🎒 Student Actions - Think. - Share. - Get ready. ### Use — Dictionaries Students learn. #### 👩‍🏫 Teacher Moves - Send students to Dictionaries. - Tap each idea. - Note key-value pairs. #### 🎒 Student Actions - Tap each. - Say. - Note it. ### Modify — Use It Students practice. #### 👩‍🏫 Teacher Moves - Make a dictionary. - Look up a value by key. - Add a new pair. #### 🎒 Student Actions - Make. - Look up. - Add. ### Create — Create Students apply. #### 👩‍🏫 Teacher Moves - Build a dictionary for a task. - Update a value. - Explain your keys. #### 🎒 Student Actions - Build. - Update. - Explain. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - What is a dictionary? - How do you get a value? - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Say it. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students. Use dictionaries to store data. Choose appropriate data structures. Test code using dictionaries. Organize data effectively. ## One lesson, every learner ### Multilingual Learners - Key-value cards. - Frame: "the key ___ maps to ___." - Use a real example. ### Support & Access - Make one pair. - Use a template. - Look up one value. ### Stretch & Extend - Loop over a dictionary. - Nest a dictionary. - Count with a dictionary. ### What to gather - 📽️Screen / board - 🔑Key-value cards - 💻Dictionaries - 💻Python - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **dictionary**: key-value storage - **key**: the unique lookup name - **value**: the data a key maps to - **pair**: a key and its value - **lookup**: getting a value by key - **map**: a key points to a value - **unique**: no repeated keys - **collection**: a group of values ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Reflect: dictionaries. Have students build a dictionary for a real task. A printable dictionary sheet is in the CS library. ## Check your understanding **1. What does “dictionary” mean?** - key-value storage *(correct)* - a group of values - the data a key maps to - getting a value by key “dictionary” means: key-value storage **2. Which word means: “the unique lookup name”?** - collection - key *(correct)* - dictionary - map “key” means: the unique lookup name **3. What does “value” mean?** - a key and its value - the data a key maps to *(correct)* - the unique lookup name - a key points to a value “value” means: the data a key maps to **4. Which word means: “a key and its value”?** - pair *(correct)* - unique - key - dictionary “pair” means: a key and its value **5. What does “lookup” mean?** - the unique lookup name - no repeated keys - getting a value by key *(correct)* - key-value storage “lookup” means: getting a value by key **6. Which word means: “a key points to a value”?** - value - key - dictionary - map *(correct)* “map” means: a key points to a value ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g9-cs-dictionaries.html All lessons: https://lessonplans.k12academics.com/