Lecture 17: Dictionaries: Mutability, Memory Diagrams and Iteration

Slides

This lecture has been divided into two sections:

Readings

Think Python, Ch. 11: Dictionaries.

Code

Click on this lec_dicts.zip link to download the .zip file to your computer.

Videos

Notes:

  1. Here is our complete CS111 YouTube Playlist for this lecture
  2. For the captions links below, you may have to right-click and "save-as;" keep the .sbv and .mp4 files in the same directory because most video players will load captions automatically.

Dictionary Mutability, Memory Diagrams and Iteration Lecture Videos:

  1. [5:41] Dict Mutability (Slide Set A) YouTube | Download | Captions
  2. [3:42] Dict Memory Diagrams (Slide Set A) YouTube | Download | Captions
  3. [5:56] Dicts and Iterating (Slide Set B) YouTube | Download | Captions
  4. [4:43] (Optional) Mini Detour: .format (Slide Set B) YouTube | Download | Captions
  5. [3:19] (Optional) Iterating Dicts + .format (Slide Set B) YouTube | Download | Captions
  6. [4:33] Notebook Ex 4 Find Largest Value YouTube | Download | Captions
  7. [7:41] Notebook Ex 5 Reverse Lookup YouTube | Download | Captions

Solutions

Zip solutions for the notebook.

HTML solutions for the notebook.