Skip to content

Learning Path

A recommended progression through these cheat sheets, organized by skill level and topic area. Whether you're new to Python or brushing up for an interview, follow the path that fits your goals.

Foundation — Core Python

Start here if you're new to Python or need a refresher on fundamentals.

StepTopicWhat You'll Learn
1Python BasicsSyntax, operators, control flow, comprehensions
2FunctionsArguments, decorators, closures, annotations
3Data Structuresdict, list, set, heap with practical patterns
4Classes & OOPInheritance, magic methods, properties, MRO
5GeneratorsGenerator functions,yield from, async generators
6Type HintsStatic typing, Protocols, TypedDict, Generics
7Regular ExpressionsPattern matching, groups, lookahead
8UnicodeEncoding, normalization, bytes vs str

Deepen your foundation:

StepTopicWhat You'll Learn
9ItertoolsCombinatorics, chaining, grouping, infinite iterators
10Collectionsdeque, Counter, defaultdict, namedtuple, ChainMap
11Functoolspartial, cache, singledispatch, wraps, reduce
12Dataclasses@dataclass, field, frozen, InitVar, inheritance

System & Tools

Apply Python to interact with the operating system and build command-line tools.

StepTopicWhat You'll Learn
13OS InterfacesProcess management, environment, platform info
14PathlibModern path manipulation, globbing, file operations
15File I/OStreams, binary data, text encoding
16Date/Timedatetime, timezone, formatting, timedelta
17LoggingLog levels, handlers, structured logging
18ArgparseCLI argument parsing, subcommands
19ClickModern CLI framework, commands, groups

Concurrent & Async Programming

Master Python's concurrency models for I/O-bound and CPU-bound work.

StepTopicWhat You'll Learn
20ThreadingThreads, locks, queues, GIL implications
21MultiprocessingProcesses, pools, shared memory
22FuturesThreadPoolExecutor, ProcessPoolExecutor
23Async GuideCoroutines, event loop, async/await mental model
24Async Basicsasyncio.run, tasks, gather, timeouts
25Async ServersTCP/UDP servers, streams
26Async AdvancedSemaphores, queues, graceful shutdown

Network Programming

Build networked applications from raw sockets to secure communications.

StepTopicWhat You'll Learn
27Socket BasicsAddress resolution, TCP/UDP, byte order
28Socket Serversselect, poll, epoll, ThreadingTCPServer
29Async SocketsNon-blocking I/O, async operations
30SSL/TLSSecure connections, context configuration
31SSHparamiko, key management, tunneling
32Socket SnifferRaw sockets, packet capture

Data & Web

Work with databases, build web APIs, and manipulate data.

StepTopicWhat You'll Learn
33SQLAlchemyEngine, connections, transactions, raw SQL
34SQLAlchemy ORMModels, relationships, sessions
35SQLAlchemy QueryJoins, subqueries, aggregation patterns
36FastAPIRoutes, Pydantic, DI, async handlers
37NumPyArrays, broadcasting, linear algebra, ufuncs
38PandasDataFrames, groupby, merge, pivot, datetime

Quality & Security

Test your code and keep it secure.

StepTopicWhat You'll Learn
39PytestFixtures, parametrize, tmp_path, monkeypatch
40Unittest Mockpatch, Mock, AsyncMock, autospec
41ProfilingcProfile, timeit, memory_profiler, optimization
42CryptographyAES-GCM, Argon2, key derivation
43TLS/SSLCertificate verification, secure defaults
44VulnerabilitiesInjection, timing attacks, secure coding

Advanced Topics

Specialized areas for ML engineering, high-performance computing, and language extensions.

StepTopicWhat You'll Learn
45C Extensionspybind11, Cython, ctypes comparisons
46PyTorchTensors, autograd, DataLoader, distributed
47MegatronModel/pipeline parallelism, distributed training
48LLM ServingvLLM, SGLang, continuous batching
49LLM BenchmarksThroughput, latency, benchmarking methodology
50SlurmJob submission, GPU scheduling, array jobs
51RayDistributed tasks, actors, cluster management

Quick Paths by Goal

Interview Preparation

  1. Interview Cheatsheet — question-indexed map
  2. Follow links into each topic area for detailed answers
  3. Focus on: OOP (classes), concurrency (threading, GIL), asyncio, decorators, generators, SQLAlchemy

Data Science / ML

  1. NumPyPandas
  2. PyTorchMegatronLLM Serving
  3. Slurm for cluster scheduling

Systems / Infrastructure

  1. OSPathlibLogging
  2. CLI toolsClick
  3. NetworkSSL/TLSSSH
  4. SecurityVulnerabilities

See Also