Your Python Basics journey
Take one lesson at a time. Each lesson has a few short explanations, examples, and exercises you can run yourself.
0 of 12 lessons complete
Variables and values
Store information in variables and inspect the type of each value.
Working with strings
Combine, format, slice, and transform text.
Numbers and math
Calculate with integers and floats, then learn how operator order works.
Booleans and decisions
Compare values, combine conditions, and choose which code should run.
Lists and tuples
Store ordered groups of values and select the items you need.
Dictionaries and sets
Look up values by name and keep collections of unique items.
Loops
Repeat work with for loops and while loops.
Writing functions
Group reusable instructions and return a result.
Errors and debugging
Read error messages, protect risky code, and find simple mistakes.
Modules and imports
Use code from Python modules instead of writing everything yourself.
Reading and writing files
Save text to a file and load it back into your program.
Finish the journey at your own pace
Your progress is saved after every lesson. Come back whenever you are ready for the next one.