THE BEGINNER PATH
Learn Python
by doing.
Clear lessons, code you can run right here, and small challenges that turn new ideas into real skills.
name = "Learner"2print(f"Hello, {name}!")3# Change it. Run it. Own it.THE WAY WE LEARN
One idea. Then try it yourself.
Each lesson follows the same simple rhythm, so you can focus on Python.
Understand
Get a short explanation and a concrete example. No walls of theory.
Run the code
Edit and execute Python in your browser. See what each change does.
Check your thinking
Answer a quick quiz and learn from common mistakes before moving on.
YOUR LEARNING PATH
Start with the fundamentals.
Go in order or jump to the concept you need. Your completed lessons stay saved in this browser.
Python History
Trace Python's beginnings, its name, and the arrival of Python 3.
Hello, World!
Run your first Python statements and recognize how Python displays output.
Variables and Types
Store values in variables and distinguish common Python data types.
Lists
Create a list, access its items, and change its contents.
Basic Operators
Use Python operators to calculate values and compare results.
String Formatting
Build readable text that includes variables and formatted numbers.
Basic String Operations
Read characters and slices from strings and apply common string methods.
Conditions
Choose which code runs using comparisons and if, elif, and else.
Loops
Repeat work with for and while loops and recognize when a loop stops.
Functions
Define reusable code with parameters and return a result.
Classes and Objects
Create a simple class and give each instance its own data.
Dictionaries
Store related values by key and retrieve or update them.
Modules and Packages
Import a module and use a function from Python's standard library.
Input and Output
Understand text input, convert it when needed, and present useful output.