Start here
You already program. This course skips the basics and covers what's different in Python, compared side by side with the language you know.
Every code box on this site runs real Python 3.14 right here in your browser, using Pyodide (CPython compiled to WebAssembly). The first run downloads about 10 MB, so it takes a few seconds. After that it's instant.
- Run boxes let you experiment. Edit the code and press Run or ⌘/Ctrl+Enter.
- Quizzes target the traps people from Java/TS/JS/PHP fall into.
- Exercises are checked by tests. You can also download them as
exercises.pyand solve them in your own editor (see the end of this lesson).
This first lesson is open to everyone. Create a free account to unlock the other ten. Your code and progress are then saved to your account, so you can continue on any device.
name = "world"
print(f"Hello, {name}!")
import sys
print("This is Python", sys.version.split()[0], "running in your browser")Setting up Python on your computer
The easiest way to get Python is to install uv (from astral.sh/uv, or brew install uv on a Mac) and let it install Python for you with uv python install. On a Mac, ignore the old /usr/bin/python3 that ships with macOS.
The tools, mapped to ones you know
| Job | Python | You know it as |
|---|---|---|
| Package manager & project tool | uv | npm, Composer, Maven |
| Project config | pyproject.toml | package.json, composer.json |
| Lockfile | uv.lock | package-lock.json, composer.lock |
| Per-project packages | virtual env .venv/ | node_modules/, vendor/ |
| Run a CLI tool once | uvx ruff | npx eslint |
| Install Python versions | uv python install 3.13 | nvm |
| Lint + format | ruff | ESLint + Prettier |
| Type check | pyright / mypy | tsc |
| Tests | pytest | JUnit, Jest, PHPUnit |
A new project with uv
uv init my-app # creates pyproject.toml + main.py cd my-app uv add requests # dependency (creates .venv automatically) uv add --dev pytest # dev dependency uv run main.py # run inside the project's environment
The REPL
Type python3 in a terminal for an interactive prompt. help(str) shows docs, dir(obj) lists methods, and exit() quits.
What's Jupyter?
A notebook (.ipynb) is a document made of cells you run one at a time. The output, including tables and charts, appears under each cell, and variables stick around between cells. It's great for exploring and for data work, but a poor fit for real apps, which belong in .py files. Try it with:
uv run --with jupyter jupyter lab
Working on the exercises locally
Download exercises.py and check.py into one folder, then:
uv run check.py # check all exercises in exercises.py uv run check.py 7 # check just #7