Python for AIPython 3.10+ · Pydantic 2.12
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
34 small wins to finish your pathNext lesson

Installation and setup

Lessons 2 to 29 run in the editor beside each lesson, with nothing installed. Later lessons need Python 3.10 or later on your own computer.

The editor beside each lesson

Each lesson with a program has an editor next to the reading. Change the code and press Run; Python runs inside your browser, so there is nothing to install and nothing leaves the page.

Python 3.10 or later on your computer

From lesson 30 you work in a terminal on your own machine, which needs Python installed. Install it from python.org, or with your operating system's package manager, then check the version:

bash
python3 --version

Lesson 30 shows how to add extra tools to Python on your computer.

No accounts needed

The model in this course is a small piece of Python you write in lesson 18, so you need no account and no password for any service. Connecting to real AI services is covered in the APIs for AI course.

Try it yourself
  • Run python3 --version in a terminal, if Python is already installed.

Little by little, you're building something great.