0Pricing
Coding for Kids · Lesson

Looking Things Up

Find values by key.

Looking Things Up 🔍

A dictionary lets you look up a value by its key, super fast! Like finding a word in a real dictionary. 📖

Use the Key 🔑

Put the key in square brackets to grab its value.

hero = {"name": "Zara", "power": "fly"}
print(hero["power"])

All lessons in this course

  1. What Is a Dictionary?
  2. Looking Things Up
  3. Adding and Changing
  4. A Mini Phone Book
← Back to Coding for Kids