CurriculumHow Python Runs Your Code, for KidsThe Assistant's Final Check

How Python Code Runs: The Full Picture, for Kids

Order, no gaps, no auto-repeats, changes only forward — everything at once.

Lesson 4 of 4FreeAges 10+
Try this lesson interactively →

The Assistant's Final Check

You've learned three things about how the assistant reads your code. Let's put them together.

One: top to bottom, always, exactly as written.

print("A")
print("B")

Output

A
B

Two: nothing happens unless you actually wrote it — no gap-filling, no guessing, no auto-repeating.

Three: a change is only visible to the lines that come AFTER it. Earlier lines can't see the future.

That's everything. The challenge ahead just asks you to use all three at once.

Check your understanding

A gate is FIND KEY, then USE KEY, then UNLOCKED. What does the line right after FIND KEY say about the gate?

print("LOCKED")
print("FIND THE KEY")
print(???)
  • Still LOCKED — the key hasn't been used yet
  • UNLOCKED — finding the key is basically the same as using it

Why: Still LOCKED. Only the line that changes the gate's state changes it — finding the key, on its own, changes nothing.

What you'll practice

The dragon's morning routine, six steps, no skipping and no repeating on their own: WAKE UP, STRETCH, ROAR, FLY, LAND, EAT.

Start this lesson for real →

More from this topic

The Assistant's Final Check is one lesson inside How Python Runs Your Code, for Kids — see the full lesson order and what the whole topic covers.

View the full topic →