Mapping Keys to Multiple Values in a Dictionary #100 - Dois Passos a Frente
from Dois Passos a Frente Hosted by João Otávio Cesco Careta
A dictionary is a mapping where each key is mapped to a single value. If you want to map keys to multiple values, you need to store the multiple values in another container such as a list or set; To easily construct such dictionaries, you can use defaultdict in the collections module. A feature of defaultdict is that it automatically initializes the first value so you can simply focus on adding items;
Embed this episode
No transcript yet.
Frequently asked questions
How long is this episode of Dois Passos a Frente?
This episode is 1 hour and 8 minutes long.
When was this Dois Passos a Frente episode published?
This episode was published on August 7, 2021.
Can I download this Dois Passos a Frente episode?
Yes. Use the download control on the episode player to save the publisher-provided media file.