Skip to content

Reference: Python Data Structures

Quick-lookup pages. Short, dense, and designed to skim — the sort of thing you keep a tab open on while you're coding. If you're here to learn the topic for the first time, start with Learn instead.

Pages in this section

  • List methods — every list method and the built-in functions that act on sequences.
  • Dictionary methods — every dictionary method and operator, including the merge and update syntaxes.
  • Set operations — union, intersection, difference, and all set methods.
  • Tuple operations — tuple methods, creation syntax, and named tuples.
  • Sequence operations — indexing, slicing, unpacking, and operations common to all sequences.