Learn Programming Lessons
Seven short lessons. Each one explains an idea, lets you play with real code in the browser, and ends with an exercise. Do them in order.
Give names to values so you can use them again.
Values that should never change.
Text, numbers, and true/false, and why it matters.
Math, comparisons, and if/else.
Do something many times without repeating yourself.
Make your own commands.
How a modern Python project is organized.
Your edits in the code blocks are remembered in this browser, so you can come back later.