What should Python dictionaries be used for?

Whenever I use a package and get a dictionary returned from an API call I struggle to know what is in it, what the meanings of the values are and whether those values are always going to be there or only in specific circumstances. Whilst dictionaries have their place and are the only choice for certain use cases, they also have limitations and shouldn’t be used in certain cases. Below I’ll discuss a few example scenarios where dictionaries are useful and where they should be avoided.

Continue reading “What should Python dictionaries be used for?”