Monday - Lecture 21 - Using Dictionaries
Date: March 02
Date: March 02
On Friday we introduced the concept of a dictionary – a new way to store data in Python. In all of our examples on Friday, we treated dictionaries like a lookup table, I give it a piece of information, and it gives me some corresponding piece of information back.
But dictionaries are also super useful to represent more complex pieces of data. Think of things we interact with all the time, TikTok posts, YouTube Videos, “tweets”. How does the computer store and access that data? Today we’ll see how a dictionary might be one approach to how we might store this data.
We’ll also introduce one last big use-case: as a “brain” for Python. Dictionaries are powerful data structures to use in the implementation of counting/tallying algorithms.
In-Class Resources
| Link | Title | Type | Duration |
|---|---|---|---|
| Video 1 | Live Lecture Recording | lecture | 50:00 |