Go beyond writing code with AI and learn to improve it — using AI coding assistants to debug tracebacks, refactor for readability and speed, generate real tests, and write documentation. This practical, tool-agnostic course stresses verification, measuring improvement, and never trusting a hallucinated API, building the professional habits that complement the Python Institute certifications.
Watch the free preview
Reading a traceback before you ask — free to watch, no account needed.
What you'll learn
- Read a Python traceback and give an AI the precise error context it needs
- Refactor long functions for readability and add type hints without changing behaviour
- Improve performance with AI suggestions and prove the gain with real benchmarks
- Generate, run and judge AI-written pytest tests, including edge cases
- Detect hallucinated APIs and apply a repeatable trust-but-verify workflow
Syllabus
Debugging Tracebacks with AI
Reading a traceback before you askFree preview
Iterative refinement to a verified fix
Refactoring with AI
Refactoring for readability and type hints
Refactoring for performance, measured
Generating and Judging Tests with AI
Generating tests, including edge cases
Judging tests and catching hallucinated APIs
Documentation, Logging and a Verify Workflow
AI-assisted documentation and logging
A trust-but-verify workflow and before/after writeups
Lab — 10 Programming Exercises & Solutions
Programming Exercises 1–5
Programming Exercises 6–10