A free course
Python for Humans
Start coding in your browser, then build Python projects on your own computer.
This course is a work in progress.
Contents
Chapters go up here as they're written.
Part I · Python fundamentals
Thinking in code
- 1 Strings Change, search, and build text with string methods and f-strings.
- 2 Numbers Integers, Floats & Arithmetic
- 3 If Statements If & Conditionals
- 4 Loops While & For Loops
- 5 Lists Lists & Indexing
- 6 Reading a File Text Files & Strings
- 7 Dictionaries Dictionaries & Key–Value Pairs
- 8 Sorting and Sets Sorting, Sets & Tuples
- 9 Functions Functions & Return Values
- 10 Handling Errors Handling Bad Input
- 11 The Word-Prediction Generator Randomness & Text Generation
Part II · Data science and machine learning
Data and models
- 12 Notebooks Notebooks & Tables
- 13 Explore Real Data Data Science
- 14 Train Your First Model Machine Learning
- 15 Teach Python to Spot Spam Text Classification
- 16 A Tiny Neural Network Neural Networks
Part III · Installing and running Python
Your own computer
Part IV · Classes and Pygame
Games
- 19 Classes Objects, Attributes & Methods
- 20 Dodge the Blocks Games
- 21 Asteroid Field Games
Part V · Live data and APIs
The web
Who am I?
Hi, I'm Will Vincent. I'm a Python Software Foundation Fellow, a former board member of the Django Software Foundation, author of Django for Beginners, and co-host of the Django Chat podcast.
I've taught Python and web development to thousands of developers through my books, tutorials and courses. I believe in learning the fundamentals properly: understanding how code works, not just copying what an AI suggests.