Let's talk about making dictionary-like objects in Python.
Dictionary-like objects are often called mappings in Python.
Here we have a dictionary object called counts
:
...
This is a premium screencast available only to active Python Morsels subscribers.
Feel free to watch some of the free screencasts in the Dunder Methods series.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.