Python for TypeScript Developers
Python is the second language most TypeScript developers end up needing — it owns data work, ML tooling, and the ops and glue scripts that hold infrastructure together. This course teaches Python to experienced TS/JS engineers by contrast: every Python idea is shown as real Python to read, then mapped to its TypeScript equivalent. You'll cover indentation and type hints, modern tooling with uv, the data model and dunder protocol, asyncio against Promise.all, and the batteries-included standard library.
5 lessons · ~1.5 hours
1. Python by Contrast
Syntax & types by contrast
Python swaps braces for indentation and compile-time types for optional hints — mypy or pyright checks them, the runtime never does.
Tooling that finally makes sense — uv & virtualenvs
Python installs packages into an interpreter environment, not a project folder — venvs give each project its own, and uv makes the whole workflow one fast tool.
The data model — lists, dicts & dunders
Python's containers map cleanly onto JS ones, comprehensions replace map/filter chains, and dunder methods are the protocol behind len(), for and +.
Async by contrast
Python's async mirrors JS almost keyword for keyword — but you start the event loop yourself, coroutines are lazy, and one blocking call freezes everything.
Stdlib scripting glue
pathlib, subprocess, json, argparse and urllib make Python the default ops language — real scripts, zero installs, one portable file.