6.100L | Fall 2022 | Undergraduate

Introduction to CS and Programming using Python

Lecture 14: Dictionaries

Introduces dictionaries, their keys and values, their mutability, and iteration over a dictionary with examples. Dictionaries have entries that map a key to a value. Keys are immutable/hashable and unique objects while values can be any object. Dictionaries can make code efficient implementation-wise and runtime-wise.

Course Info

Instructor
As Taught In
Fall 2022
Learning Resource Types
Lecture Videos
Lecture Notes
Problem Sets
Programming Assignments with Examples
Readings
Recitation Notes