
Python
Master Course V2
Write your first line.
Build something real.
Learn by doing
Clear lessons. Practical projects.
Ideas you can make your own.

Interactive example
def greet(name):
return f"Hello, {name}!"Make sense of an idea with a clear explanation.
Put the idea to work, one small project at a time.
Try it yourself. Check your answer. Keep going.
Explore learning paths
6 learning paths

Write your first line.
Build something real.


Get curious about intelligent tools.
Open classroom
A master course in intelligent systems.
Open classroom

Try another word or explore all topics.
All six featured paths have written lessons available now. Open a classroom and start learning.
View the full course catalogue ↗A path you can follow
Start with one idea. Turn it into something you understand, then something you can do. Here’s a simple way into Python.
Begin with what programming is, how Python works and your first small program.
Read the first lesson ↗Follow the published Python classroom through examples, exercises and projects.
Open the Python classroom ↗Make a prediction, explore an example and use the explanation to check your thinking.
Try the interactive example ↓A small idea, made practical
A function gives a reusable set of instructions a name. This one accepts a name and returns a greeting. Change the input and predict what comes back.
This is an interactive illustration of the fixed function shown here, not a Python code runner. Your input stays on this page. No scores or progress are saved.
Python · Function preview
def greet(name):
return f"Hello, {name}!"
print(greet("Ada"))The value you enter becomes the function’s name parameter. The f-string inserts it between “Hello, ” and “!”. The function returns that string; print() displays it.
Predict the result for greet("Sam"), then enter Sam above. You should see Hello, Sam!. The quotation marks identify a Python string; they aren’t part of the greeting.
Your next step doesn’t have to be a big one.