Skip to main content

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.

  1. Basics: Loops, conditionals, functions, exceptions and core syntax.
  2. Built-in data structures: list, tuple, dict, set, str and string formatting.
  3. Built-in functions: len/min/max, sorted, zip, any/all, numeric and conversion built-ins.
  4. collections: deque, defaultdict, Counter, OrderedDict, namedtuple.
  5. heapq: Priority queues: min-heap, max-heap, tie-breaking, k-way merge.
  6. functools: Memoization, custom comparators, reduce, partial.
  7. math & numbers: gcd/lcm, integer sqrt, combinatorics, logs, modular arithmetic.
  8. OOP for LLD: Classes, inheritance, ABCs, protocols, dataclasses, enums, type hints, unit testing.
  9. Advanced Python for LLD: Generators, decorators, context managers, concurrency, datetime, uuid, bisect, itertools.
  10. LLD design patterns: Common GoF patterns written idiomatically in Python.
  11. APIs & JSON scripting: HTTP requests, JSON, cleaning and reshaping data, structuring API scripts, and small Flask and FastAPI servers.