Python
Your course
0 / 24
Lessons completed
0 / 63
Exercises done
Learn Python
Small steps. Real code.
Unit 1
Make something happen
Show a message. Keep a score. Do the maths.
Make the computer say something
Give a number a name
Do some maths
Unit 2
Work with your data
Put text together and ask questions about numbers.
Put text together
Keep several numbers in a list
Ask a yes-or-no question
Unit 3
Let the code do the repeating
Make choices, then watch loops work.
Make a choice with if
Repeat with a for loop
Count with range
Unit 4
Build it yourself
Make your own instructions and a study tracker.
Repeat until it is time to stop
Make your own instruction
Build a study tracker
Unit 5
Look things up
Count with a dictionary, get answers back from functions, and shape text.
Count things with a dictionary
Get an answer back from a function
Clean up and cut up text
Unit 6
Shape your data
Lists that grow, records with named parts, and loops that search.
Grow, cut and sort a list
Describe a thing with named parts
Search and compare inside a loop
Unit 7
Programs that cope
Handle surprises, read what a person types, then build a receipt.
Keep going when something goes wrong
Ask the person using your program
Build a shop receipt
Unit 8
Organise bigger programs
Classes, modules and a project that ties the course together.
Make your own kind of thing
Use code that is already written
Build a small library
Sign in to save future lessons.
About saving progress
Without an account, your work lasts until you reload the page. Signing in starts saved progress; work from before signing in is not carried over.