CS110: Spring 2020

Intro to Computer Programming with Python

CS110: Spring 2020

Dictionaries

In today’s lesson, we will be learning about dictionaries – another way (in addition to lists and tuples) of storing and representing 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.

Then, next week, we’ll go over how dictionaries can help you to group, tally, and analyze data.

Please Complete the Following Tasks

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 L12a: Dictionary syntax / functionality pre-recorded 16:49
Video 2 L12b: Dictionaries as lookup tables pre-recorded 10:37
Video 3 L12c: Dictionaries as entity representations pre-recorded 7:20
Video 4 L12d: Lists of dictionaries (Twitter) pre-recorded 14:50
Video 5 Practice with dictionaries lecture 45:24

4. Review / Study the Supplemental Materials

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

  1. Severance Ch9: Dictionaries.
    readingvideo