CurriculumPython print() for KidsThe Dragon's Challenge

Practice Challenge: Everything About Python print()

Everything at once — no new tricks, just choosing the right tool.

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

The Dragon's Challenge

You've learned three things from me. Let me remind you what they are, because you'll need all of them.

One: print() says a thing, and each print makes its own line — even an empty one.

print("first")
print("")
print("third")

Output

first

third

Two: sep changes what goes BETWEEN things, and end changes what comes after.

print("a", "b", sep="-")

Output

a-b

Three: quotes mean 'say these symbols'. No quotes means 'work this out first'.

print("6 * 7")
print(6 * 7)

Output

6 * 7
42

That's everything. The challenge ahead adds nothing new — it just asks you to pick the right one each time.

Check your understanding

I need to say cost:99 on one line. Which tool does that need?

print("cost", 99, ???)
  • sep=":"
  • end=":"
  • Nothing — the comma already does it

Why: sep=":" replaces the space between the things you hand me, giving cost:99. Remember: sep is between, end is after.

Which of these makes me say 20 — the number, not the symbols?

  • print(4 * 5)
  • print("4 * 5")
  • print("20")

Why: print(4 * 5) hands Python a sum to solve, and it gives me 20. Without quotes, Python calculates; with quotes, I just read.

What you'll practice

Before the real challenge, a warm-up. The dragon wants ONE line that says its name, then a dash, then how many coins it has — using a separator, not spaces.

Start this lesson for real →

More from this topic

The Dragon's Challenge is one lesson inside Python print() for Kids — see the full lesson order and what the whole topic covers.

View the full topic →