← All tracks
🐍
Python
The friendliest first language. Start here if you have never written code.
1
Introduction to Python
What Python actually is, why it works well as a first language, how your code gets run, and how to print output and write comments.
8 min
2
Variables and Data Types
How variables store values, the four types you will use most, checking types with type(), converting between them, and the naming rules that matter.
9 min
3
Input and Output
Reading data from the user with input(), why it always gives you text, converting it to numbers, and formatting output cleanly with f-strings.
8 min
4
Operators
Arithmetic, comparison, logical and assignment operators, the difference between / and //, and the precedence rules that decide evaluation order.
9 min
5
Making Decisions with if and else
Writing conditions with if, elif and else, why Python treats indentation as part of the language, nested conditions, and how truthiness works.
9 min
6
Loops: for and while
Repeating work with for and range(), looping until a condition changes with while, controlling loops using break and continue, and choosing between them.
9 min
7
Lists and Strings
Storing many values in a list, indexing and slicing, the methods you will use most, and why strings behave like lists but cannot be changed.
10 min
8
Functions
Defining your own functions, passing parameters, returning values, how scope works, default arguments, and why functions matter more than they first appear.
10 min