Learn Everything

Module · AI Engineer

Python

The working language of AI engineering.

2 topics4 interactive tasks

TOPIC 01

Your First Python Script

Lay out a Python project on disk, pin a dependency and make it a real git repository.

Your First Python Script

Every AI engineer starts the same way: a folder, a script, a pinned dependency and a git repo. Before you touch a model API, you need the muscle memory of turning an empty home directory into a real project.

What you'll practice

  • Write Your First Script — guided · beginner
  • Lay Out a Python Project — practice · beginner

A command you'll meet

echo httpx==0.27.0 > ~/ai-lab/requirements.txt

Open any task below to get the full step-by-step walkthrough — every command is explained, and the lab validator checks what you actually built.

TOPIC 02

Testing & Typing Your AI Code

Tests that catch a broken prompt call, and types that make the shape of a message obvious.

What you'll practice

  • Write a Pytest Suite — practice · intermediate
  • Type Your Message Models — guided · beginner

A command you'll meet

pytest -q

You cannot prompt your way out of a broken function. Open the task below for the full walkthrough.