Junior Codes
Willow Island

Python print() for Kids

Make the computer show a message: the very first line of Python.

Try this mission free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

print(), explained simply

A computer does exactly what you tell it, nothing more. The simplest instruction you can give in Python is print(). Whatever you put inside the brackets appears on the screen.

When you want to show words, wrap them in quotation marks. The quotes tell Python "this is text, show it exactly as it is". Words inside quotes are called a string.

You can write as many print() lines as you like. Python runs them from top to bottom, one after another, so the order of your lines is the order your messages appear.

Example: Say hello

print("Hello, Pip!")
print("Let's build something today.")

Output

Hello, Pip!
Let's build something today.

Try this

  • Print your own name, then your favourite animal on the next line.
  • Remove one quotation mark on purpose and read the error Python gives you. Errors are clues, not failures.
  • Print a tiny picture using three lines of symbols, like a smiley face made of letters.

Practise it in Wonderwild

“A hello goes a long way”

Mission 1 in Willow Island, one of 36 Python missions in Wonderwild.

Your child writes and runs real Python in the browser while Pip reacts to every line. Nothing to install. For ages 7+.

Try this mission free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

Questions parents and kids ask

Why do we need quotation marks in print()?+

Quotation marks tell Python the words are text to show, not instructions or names it should look up. Without them Python tries to understand the words as code and usually reports an error.

Can print() show numbers?+

Yes. print(7) shows 7, and print(3 + 4) works out the sum first and shows 7. Numbers do not need quotation marks.

Is print() a good first thing for a 7 or 8 year old to learn?+

Yes. It gives an instant result, so children see that their typing made something happen. Younger children usually enjoy it most with a grown-up nearby for the first few tries.

Prefer learning with a teacher?

Our live Python for Young Developers course teaches these ideas in small online classes led by a software engineer, with projects and feedback. Every live course also includes 12 months of full Wonderwild access for practice.

See the Python for Young Developers course