Python Kitchen Sink
Personal Python 3.14 reference for DSA and LLD. Each page has a short explanation, copy-paste syntax, and links to the official docs.
Start with Favorites for curated shortlists by task.
- Basics: Loops, conditionals, functions, exceptions and core syntax.
- Built-in data structures: list, tuple, dict, set, str and string formatting.
- Built-in functions: len/min/max, sorted, zip, any/all, numeric and conversion built-ins.
- collections: deque, defaultdict, Counter, OrderedDict, namedtuple.
- heapq: Priority queues: min-heap, max-heap, tie-breaking, k-way merge.
- functools: Memoization, custom comparators, reduce, partial.
- math & numbers: gcd/lcm, integer sqrt, combinatorics, logs, modular arithmetic.
- OOP for LLD: Classes, inheritance, ABCs, protocols, dataclasses, enums, type hints, unit testing.
- Advanced Python for LLD: Generators, decorators, context managers, concurrency, datetime, uuid, bisect, itertools.
- LLD design patterns: Common GoF patterns written idiomatically in Python.
- APIs & JSON scripting: HTTP requests, JSON, cleaning and reshaping data, structuring API scripts, and small Flask and FastAPI servers.