Tutorials
Practical tutorials for the work we actually do. Pick one, read it in order, and apply it.
A traceback is not the problem. It's the first clue.
If a person reads your output, format it. f-strings let you mix text and values, round numbers, add thousands separators and line up a table, with very little code.
The four list moves you need on day one: make a list, add to it, remove from it, and loop over it. Plus the one mistake that gives wrong results without any error. Nothing more.
Reproduce an interpreter mismatch, compare executable, pip and module paths, then verify the repair from the Python environment that runs the application.
Validate a defined spreadsheet-export contract, record rejected rows with reasons and line ranges, and reconcile accepted and rejected outputs without changing the source.
A dictionary comprehension builds a dictionary in one line. Good for transforming, filtering and building lookups.
A decorator is just a function that wraps another function. Build a real timing decorator step by step: functions as values, the wrapper, the @ syntax, and functools.wraps.
Reading a big file into a list can kill your program. A generator handles one line at a time.
Python ignores type hints when it runs. A checker like mypy doesn't.
asyncio.gather runs many waiting tasks at once in one thread and returns results in order.
Catch a missing package resource by inspecting a wheel and testing its import, version, data file and console command in a clean environment.
A bare except hides typos and real bugs behind wrong results. Catch the specific error you expect, keep the try block small, and let everything else crash where you can see it.