Quickie Dev #2: Lists, sets, dicts, tuples… in Python

Because choosing the right data structure can save your program!

Mina Pêcheux
May 3 · 9 min read

When you want to store a pack of data in Python, you can pick one of several built-in iterable types (in the docs, they’re classified in “sequence”, “set” and “mapping” types). Most of us know of the lists and the dicts, but there are some others that can prove very efficient in specific situations.