CurriculumPython Variables for KidsThe Dragon's Full Sheet

Practice Challenge: A Full Python Character Sheet

Everything you know about boxes, at once.

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

The Dragon's Full Sheet

You know three things now: make a box, change a box, and print several boxes together.

Making one: put a value in, no print yet.

gold = 100

Changing one: read the old value, work out the new one, save it back.

gold = gold + 30

Printing several, labelled: words and boxes mixed with commas.

print("Gold:", gold)

Output

Gold: 100

The challenge ahead just asks you to use all three, in the right order.

Check your understanding

gold = 100, then gold = gold + 30. What does print(gold) say?

gold = 100
gold = gold + 30
print(gold)
  • 130
  • 100
  • 30

Why: 100 + 30 = 130, and that gets saved back into gold. The box remembers the update.

What you'll practice

Before the real challenge: make three boxes (name, level, gold), then print each one, labelled, on its own line.

Start this lesson for real →

More from this topic

The Dragon's Full Sheet is one lesson inside Python Variables for Kids — see the full lesson order and what the whole topic covers.

View the full topic →