🎨
Story with your name
Fill in the blanks — Python turns them into a tiny story.
Sprout· ages 8–1010 minvariablesf-stringsprint
story.py
…First load pulls ~10 MB of Python. Only happens once — the browser caches it after.
What should the output look like?
You should see a short story printed across multiple lines, with your name and details woven in.
📖
How this works
Variables save information for later (like a name or age). F-strings are Python's way of dropping variables into text — write {name} inside quotes and Python swaps in the value.
Your turn — try these
- 1Add a `sibling` variable and a line about them.
- 2Make the story rhyme — change the last two lines to end with the same sound.
- 3Add a HERO section: describe a superpower the character has.