Skip to content
Mapping Keys to Multiple Values in a Dictionary #100 - Dois Passos a Frente episode artwork

Aug 7, 2021 1 hr 8 min

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;

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Mapping Keys to Multiple Values in a Dictionary #100 - Dois Passos a Frente

0:00 1:08:37

No transcript yet.

Requests help us decide what to transcribe next.

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.