Please enable JavaScript to use CodeHS

Chapter 7

Extending Data Structures

7.4 Dictionaries

Dictionaries

Creating a Dictionary

Key/Value Pairs

Dictionaries are Mutable

Using the in Keyword

Using a Try-Except Block

For Loops and Dictionaries

Keys and Values

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Phone Book