Skip to content

Data structures

This guide covers Python's built-in data structures — lists, tuples, dictionaries, sets — and the tools for working with them: comprehensions, slicing, unpacking, and conversions between structures.

Coming soon

This guide has been written in depth and is awaiting migration into Agilearn. The archived version remains available at accuser.dev/data-structures-with-python.

What will be here

Learn — lists, tuples, dictionaries, sets, comprehensions, slicing and unpacking.

Recipes — choosing the right structure, sorting and filtering, merging dictionaries, nested structures, converting between structures.

Reference — method tables for lists, tuples, dictionaries, and sets, plus sequence operations.

Concepts — mutable vs immutable, how hash tables power dictionaries, memory and performance trade-offs.