Python
The friendliest first language.
Beginner23 lessons≈4 h 48 min total
Start this trail
Begins with: What is programming?
Trail map
Camp 1
First steps
What programming actually is, and your very first Python program.
Camp 2
Variables & types
Teach Python to remember things: numbers, text, and truth.
Camp 3
Control flow
Make decisions and repeat work — the heart of every program.
- Making decisions with ifOn the trail map
- Repeating with whileOn the trail map
- for loops and rangesOn the trail map
- break, continue, and loop patternsOn the trail map
Camp 4
Collections
Handle many values at once with lists, dictionaries, and friends.
- ListsOn the trail map
- Growing and slicing listsOn the trail map
- DictionariesOn the trail map
- Tuples and setsOn the trail map
- Looping over collectionsOn the trail map
Camp 5
Functions
Package logic into reusable, nameable blocks — and build a game.
- Defining functionsOn the trail map
- Parameters and return valuesOn the trail map
- Scope: where names liveOn the trail map
- Imports and the standard libraryOn the trail map
- Project: number guessing gameOn the trail map