Learn Python, one small idea at a time.

114 short chapters, each with code you can run and change right on the page. No install, no account, nothing to set up.

Basics

14

Strings

9

Collections

19

Control flow

5

Functions

11

Classes and objects

11

Modules and the standard library

9

Files and errors

9

Beyond the basics

13

Machine learning

14