Getting started with Python
Run your first program, understand values and names, and turn simple inputs into useful calculations.
No previous programming experience. If you can type, you're ready.
Run a saved Python file, trace variable assignments line-by-line, convert text to numbers, and understand the difference between source code and output.
Read in order, or jump to what you need.
Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.
- 01.01Welcome to Python4 min
Write a complete tiny program and learn how to read its instructions and results.
- 01.02Setup and your first saved program4 min
Understand the interpreter, terminal, and editor, then run a saved Python file reliably.
- 01.03Variables and types4 min
Use names to describe values and reason about assignment, reassignment, and conversion.
- 01.04Operators and input4 min
Build calculations deliberately, distinguish division operations, and convert interactive input.
- 01.05Modules, comments, and pip4 min
Reuse code from the standard library, install external packages deliberately, and leave comments that explain decisions.
Ready to move on?
Change an input value, predict the calculation result, run the saved file, and confirm it produces your expected output.
Open the module self-check