Lecture 14: Dictionaries
At a glance
- Price Free to watch, no sign-up
- Runtime 1 h 18 min
- Topics Computer Science
- Source MIT, Introduction to CS and Programming using Python
- Lecture Lecture 14 of 25
- Language English
Ana Bell teaches this MIT OpenCourseWare session from 6.100L, Introduction to Computer Science and Programming Using Python, on Python's dictionary data structure. She covers how dictionaries map keys to values, why keys must be immutable and hashable while values can be any object, and how to iterate over a dictionary's entries. Worked code examples show how dictionaries can make programs more efficient both in how they are implemented and in how fast they run compared to alternatives like lists. The lecture runs 78 minutes and fits into the course's broader sequence on Python data structures, building on earlier material about lists and sets. It is aimed at students already familiar with basic Python syntax and loops, and it uses the whiteboard and live coding format typical of MIT's introductory programming lectures.