8 lessons · Free · No GPU

From your first line of Python to your own model

Run your first Python example in the browser. By the final lesson, you’ll train a model to recognise the type of incident from its description.

You can start without an account.

What you will buildPython → AI
Incident description

“The API takes too long to respond”

Your small model

Learns from examples on a CPU

CategoryPerformance
An example of the task. The course teaches you to measure mistakes too.
01

Write Python

Functions and data, with examples you can run in your browser.

02

Train a model

Prepare examples and train a small classifier on your CPU.

03

Check the result

Measure quality on new data and find out where the model makes mistakes.

Your eight steps

  1. 01Python for AI: your environment and first function
  2. 02Records, functions and clear errors
  3. 03JSONL: reading data one line at a time
  4. 04NumPy: turning text into numbers
  5. 05An honest experiment: splits and baselines
  6. 06PyTorch: tensors, autograd and optimizers
  7. 07A small incident classifier
  8. 08Evaluation, checkpoints and the final CLI
What do I need for the project?

Try the basics in your browser. The final project runs locally with Python 3.15.1, NumPy and PyTorch. It uses a CPU; the target configuration is two CPU cores and 8 GB of RAM.

Download the project

Extract the archive, then follow the setup in lesson 1. It includes the course-projects/python-for-ai folder, exercises and tests.

What can I build next?

Train a model to complete a phrase or build an assistant that answers questions about documents. All project lessons are open. Assignments and checks are included in paid MCP practice.

Choose an AI project