Want to work with data but no idea where to start?
There's an order to it: load a dataset → clean it → group it → chart it → find what it's telling you.
This path walks you through each step once you know basic Python.
Want to work with data but no idea where to start?
There's an order to it: load a dataset → clean it → group it → chart it → find what it's telling you.
This path walks you through each step once you know basic Python.
x = 1 is the easy case.
Parameters, loop variables, with ... as f, except ... as e, the walrus operator and match patterns all bind names too.
To dim unused names, the ty type checker handles each case on its own. Where the reads hide is the hard part.
Finished the tutorials but never shipped a web app?
There's a guided path from your first route to a deployed app and API, with Django, Flask and FastAPI. You write real endpoints in your browser.
Which lock file does your team use, and would pylock.toml replace it?
The tutorial also walks through a real numpy entry and compares it with pip-compile.
5. requirements.txt still wins when you need pip options like --index-url in the file, or for a quick script with two dependencies you typed by hand.
When teammates use pip, uv and pdm, or CI should install exact files without resolving anything, use pylock.toml.
1. pip 25.1+ has an experimental pip lock command.
Give it a requirements.txt with only pandas and scipy, and you get a pylock.toml with five pinned packages, transitive ones like numpy and python-dateutil included.
numpy shows up once, though pandas and scipy both need it.
2. Besides the version, pylock.toml records each package's wheel filename, the URL it came from and its sha256 hash.
So an install can be verified against the exact file, and dependencies can be audited without resolving them again.
3. A pylock.toml written by one tool installs with another.
pip 26.1+: pip install -r pylock.toml
uv: uv pip sync pylock.toml
pdm: pdm sync --lockfile pylock.toml
pip lock only pins wheels for your platform. uv export --format pylock.toml covers macOS, Linux and Windows.
4. Tool support is still partial.
uv can install from a pylock.toml, but it won't write those packages into your pyproject.toml, so uv can't manage the project from it.
Dependency groups, which could replace requirements-dev.txt, aren't supported by most tools yet.
requirements.txt was never a standard. pip's docs call it a list of things pip installs.
PEP 751 adds a real one, pylock.toml:
1. 2 packages in, 5 locked
2. What it pins besides versions
3. One file for pip, uv, pdm
4. Where support lags
5. When to keep requirements.txt 🧵
"How much has Kevin spent with us?"
Your agent calls a Python tool → gets 160 → answers in plain words.
Want to build that? Real Python has a guided path from your first LLM API call to agents with MCP tools. Free learning plan here:
Can't keep Claude Code's slash commands, flags, hooks and subagents straight?
The free cheat sheet puts them all on two printable pages. Keep it next to your keyboard.
1. Both task backends that ship with Django 6.0 are for development.
ImmediateBackend runs the task inline, in the same thread as your view.
DummyBackend never runs it at all. Its status stays READY.
Production needs a backend like django-tasks-db plus a worker process.
Django 6.0 ships a task framework, django.tasks. Out of the box, it never runs a task in the background.
Before you ship it:
1. Backends you can't deploy
2. Arguments that crash .enqueue()
3. Tasks that beat a commit
4. Results that go stale
5. Emails stuck behind reports 🧵
Your AI coding agent keeps guessing your dependency manager and coding style?
Pin them in an AGENTS.md file, a plain Markdown file at your project root. The agent loads it at the start of every session.
You don't need to be a 20-year veteran to speak at PyCon US. The organizers say so.
Proposals for talks, tutorials, posters and Charlas are open until December 19. The AI and Python security talk tracks are back.
Details from PyCon US
https://pycon.blogspot.com/2026/11/pycon-us-2027-call-for-proposals-now.html
Stack two decorators on one function, then swap their order.
Same code, different output. Each one wraps the next.
Worth knowing before you add timing and caching to the same function.
AI slop has a definition now: work that took less effort to make than it takes your reviewer to understand.
By that test, how much of last week's PR queue counts?
Want to see what those five routes do under the hood? Our tutorial builds CRUD operations with SQLAlchemy and FastAPI by hand.
Five FastAPI CRUD routes for a SQLAlchemy model, from a class with just a prefix and a model.
fastapi-restly makes the Pydantic schemas and adds filtering, sorting and pagination.
By Rutger Prins. Beta, but it ran in production at two companies first.