0Pricing
Coding for Kids · Lesson

Adding and Changing

Update your word boxes.

Adding and Changing ✏️

Dictionaries are not frozen! You can add new drawers and change what is inside. 🔧

Add a New Pair ➕

Use a new key in square brackets and give it a value!

pet = {"name": "Rex"}
pet["age"] = 4
print(pet)

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