Skip to content

Python for TypeScript Developers

Learn Python by mapping it to the TypeScript you already know. Written for Python 3.14. Runnable examples, side-by-side comparisons, quizzes — all in your browser.

Introduction & Setup

Why Python for TS devs, the mental-model shifts, and the toolchain. Start →

Python 101 — Fundamentals

Variables, functions, classes, errors — TypeScript ↔ Python. Learn →

Python You Won't Find in TypeScript

Decorators, comprehensions, generators, dunder methods, context managers. Explore →

Async & Concurrency

asyncio, tasks & gather, threads, multiprocessing — beyond the event loop. Dive in →

Building an API with FastAPI

Routing, Pydantic models, validation, DI — Express/Nest ↔ FastAPI. Build →

Advanced Python

Protocols vs structural typing, dataclasses, pattern matching, pytest. Go deeper →

Tooling, Testing & Deployment

ruff/black, mypy, pytest, venv/uv, Docker, CI. Ship it →

Comparison-first

Every concept starts from the TypeScript you know, then shows the Python way.

Run Python in your browser

Runnable examples execute client-side via Pyodide — real CPython 3.14 compiled to WebAssembly, so Python 3.14 syntax runs for real. No setup, no backend.

Quizzes & progress

Check your understanding after each lesson; your progress is saved locally.

Bilingual

Available in English and ไทย — switch anytime from the top bar.

Verified against CPython 3.14 (docs.python.org/3.14) and TypeScript 5.9/7.0 (typescriptlang.org), Pyodide 314.0.6 (CPython 3.14.2 in-browser).