Skip to content

TRY A LESSON · ABOUT 5 MINUTES · NO ACCOUNT NEEDED

Make your program say hello.

A small taste of the learning approach: understand an idea, try a change, and check what you learned.

This guided preview demonstrates a Python concept using preset controls. It is not the full Python editor. Your answers stay in this page and are not saved to an account.

Learning goals

Understand that a variable stores a value and that a loop repeats an instruction.

Success criteria

I can change a name, predict the greeting and explain how the repeat count changes the output.

1. Understand

Think of name as a labeled box that holds a word. print displays a message. A for loop repeats the message a chosen number of times.

2. Try it

name = "Creator"
for step in range(1):
    print("Hello, " + name + "!")

Predict the output first, then try it.

3. Check your understanding

If the loop uses range(3), how many greetings appear?

4. Explain it

Tell someone what changed when you chose a new name. Then explain what the loop does. Can you predict the result before showing the output?

Ready for the full learning path?

Create a free pilot parent account, add a child with a nickname, and select a learning path. The full platform includes project workspaces, saved progress and skill checks. Live coaching is optional.

Create a parent account Explore the full Python path →