Index Ai Academy
Project tutorials

Python AI project tutorials

Build something real, one step at a time. Each program comes from a lesson and has been run, so the code works, and any output shown is what it really prints.

They're all free to read, with no account. A free account adds the exercises, which check your code in the browser. Not sure where to start? See the AI engineer roadmap.

6 steps

Build a GPT from scratch in Python

Write a tiny GPT in PyTorch, train it on a product catalog, and watch it write new descriptions. The whole program is about 70 lines.

9 steps

Build a REST API in Python from scratch

Authentication, validation, pagination, idempotency and clean errors, in a working API built with the standard library so you can see how each one works.

7 steps

Build a coding agent in Python

An agent that reads and edits a project, runs its tests and stops when they pass, with the safety checks that keep it inside the project.