CurriculumPython print() for KidsWhat print() actually does

What Does print() Do in Python? A Kid-Friendly Explanation

The command that gives the dragon its voice.

Lesson 1 of 5FreeAges 10+
Try this lesson interactively →

What print() actually does

You just made me speak! Let me show you what actually happened there.

print is a command. You give it something, and it says it out loud.

print("Wake up, dragon!")

Output

Wake up, dragon!

The brackets are how you hand something to print. Nothing gets said without them.

print("Wake up, dragon!")

The quotes matter too. They mean 'these are words, exactly as written' — so I say them exactly as written.

print("Hello")

Output

Hello

And every print() gets its own line. Two prints, two lines. Always.

print("First")
print("Second")

Output

First
Second

Check your understanding

How many lines will I say here?

print("Left")
print("Right")
print("Middle")
  • Three lines
  • One line, with all the words on it
  • Two lines — the last one repeats

Why: Three prints, three lines, in the order you wrote them: Left, then Right, then Middle. I go top to bottom, always.

What will I say here?

print("dragon")
  • dragon
  • "dragon" — with the quotes
  • Nothing — dragon isn't a real word to Python

Why: I say dragon, with no quote marks. The quotes tell Python where your words begin and end; they never get spoken.

What you'll practice

The dragon is awake now, and curious. It wants to hear you say hello — properly this time, with the whole line written by you.

Start this lesson for real →

More from this topic

What print() actually does is one lesson inside Python print() for Kids — see the full lesson order and what the whole topic covers.

View the full topic →