Skip to main content

🐍 Python tutorial

Python tutorial — from print() to your first deployed project.

Interactive lessons. Real Python in your browser. An AI tutor on every step. 15 lessons free, no signup, no credit card.

▶ Start lesson 1 — no signupSee the full track

✓ Browser-native Python · ✓ AI tutor on every lesson · ✓ 15 lessons free

The 174-lesson roadmap

MODULE 1

Syntax + first runs

print, variables, types, basic arithmetic. By lesson 5 you can write a tip-calculator in 4 lines.

MODULE 2

Conditions + loops

if/else, comparison operators, for / while, range, break/continue. Builds the brain to read other people's code.

MODULE 3

Data structures

lists, dicts, sets, tuples — when each one is the right answer. Includes the 5 most-asked dict patterns.

MODULE 4

Functions + scope

def, return, args + kwargs, default values, the mutable-default trap, lexical scope. The 'I now read library code' module.

MODULE 5

Files + errors + stdlib

Read/write files (text + JSON), try/except patterns, the parts of the standard library you'll actually use weekly (os, pathlib, datetime, json, re).

MODULE 6

Mini-projects

5 small builds: tip calculator → password generator → CSV summariser → habit tracker → a real Discord-style chat log analyser. Each ends with a shareable URL.

Try the first 5 free

01Hello, World!
02Variables
03Data Types
04Strings and f-strings
05Numbers and mathematics

Ready to start? 15 lessons are free without signup — no credit card.

▶ Open lesson 1 →