CurriculumHow Python Runs Your Code, for KidsNothing happens that you didn't write

Python Never Guesses What You Meant

No guessing, no auto-repeating, no filling in gaps — only what's actually on the page.

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

Nothing happens that you didn't write

Here's the part that surprises people most: the assistant never fills in a gap for you.

If a step is missing, NOTHING happens for it — even if the answer feels obvious to a human.

print("FIRST")
print("LAST")

Output

FIRST
LAST

See? No MIDDLE. The assistant didn't know you probably wanted one — it just isn't there.

The same goes for repeating. One line runs once. If you want it three times, you write it three times.

print("Hi")
print("Hi")
print("Hi")

Output

Hi
Hi
Hi

This will matter a lot once loops arrive — but for now, remember: only what's written, happens.

Check your understanding

print("FIRST") then print("LAST") — with nothing in between. What do I say?

print("FIRST")
print("LAST")
  • FIRST, then LAST — nothing else
  • FIRST, then something in the middle, then LAST

Why: FIRST, then LAST. There is no line asking for anything in between, so nothing appears in between.

print("Hi") is written ONCE. How many times do I say Hi?

print("Hi")
  • Once
  • It depends on how important it seems

Why: Once. A single print() line means the assistant does that one thing one time — no more, no less.

What you'll practice

The assistant does not guess. If a line is missing, nothing happens for it — no matter how obvious it seems. Add the missing middle line so it prints FIRST, MIDDLE, LAST.

Start this lesson for real →

More from this topic

Nothing happens that you didn't write 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 →