10 quick references you can keep open while you code, or print. Each row is a snippet as you would type it and one line on what it does. 395 snippets in total, every one executed on Python 3.12 before it was published.
Free, no account needed. Each sheet links the lesson that teaches the topic properly.
Indexing, case and whitespace, searching, split/join, f-string formatting and the byte-level bits.
Build, index, slice, mutate, sort and search Python lists, plus the copy semantics that trip people up.
Dictionary creation, safe lookups, updates, iteration and transforms, then the set algebra.
if/elif/else, loops with else, itertools helpers, the four comprehension forms, and match/case.
Definitions, every kind of argument, scope, lambdas with map/filter/sorted, closures, decorators and generators.
Classes, dunder methods, properties, inheritance and ABCs, dataclasses, enums and attribute introspection.
Reading and writing text, pathlib, CSV with the csv module, JSON encode/decode, and binary files.
try/except/else/finally, raising and chaining, custom hierarchies, cleanup helpers and the built-ins you meet daily.
search vs match, groups, findall/finditer, sub with backreferences, split, flags, and a pattern syntax reference.
DataFrame creation and inspection, selection and filtering, new columns, group-by, missing data, dates, merges and reshaping.
Looking something up because an interview is coming? The interview prep track has the problems these snippets solve. Not sure where you stand? Take the 5-minute level test.