CS110: Fall 2021

Intro to Computer Programming with Python

CS110: Fall 2021

Lessons > 21. Dictionaries

Today and all next week, we will be learning about dictionaries – another way (in addition to lists and tuples) of storing, representing, and analyzing collections of related data. As a programmer, you will encounter dictionaries all of the time. We’ll go over some common scenarios and take a look at many different kinds of dictionaries.

Today's Activities

For today, please do the following:

1. Download the Exercise Files

Exercise Files

2. Review the Slides

  1. Dictionaries
  2. Supplementary Slides for Live Lecture

3. Watch the Lecture Video(s)

Link Title Type Duration
Video 1 L21a: Dictionary syntax / functionality pre-recorded 11:56
Video 2 L21b: Dictionaries as lookup tables pre-recorded 10:37
Video 3 L21c: Dictionaries as entity representations pre-recorded 7:20
Video 4 L21d: Lists of dictionaries (Twitter) pre-recorded 14:50
Video 5 Practice with dictionaries lecture 48:31

4. Review / Study the Supplemental Materials

Note: these readings / videos are suggested for additional context / examples, but not required.

  1. Severance Ch9: Dictionaries.
    readingvideo