A tiny shop. A little magic. Your code.
Potion Workshop
Turn instructions into enchanted potions. Watch your code work, win over curious creatures, and learn Python & C++ one brew at a time.
Order 1 / 6 · Variables
A little sunshine
Pip lost their glow. Brew one sunshine potion: add 2 sun drops, then serve.
Your spellbook
0 / 16 instructions1. Add instructions. 2. Set amounts. 3. Brew and watch.
Shortcuts work while focused in the game. Selected text copies normally.
- Your first spell starts here.
Try “+ Add drops” to put sunshine in the pot.
This guided builder runs the instructions shown. It supports the concepts here, with shop helpers serve(sun, moon) and wants(); it is not a general compiler.
A new shift, a fresh puzzle.
Use what you learned on three new customer orders. No worked recipe; your choices make the potion.
The idea behind the magic
Variables
A variable is a labeled container. sun starts at 0. Adding drops changes its stored value.
One idea, two languages
Different spelling. Same potion.
Python uses indentation to group instructions and a colon to start a block. Every program starts with:
sun = 0 moon = 0
Switch languages above to compare the exact same instructions. Each language earns its own completion badge.
Personalized instruction
Not sure what to learn or practice next?
A focused diagnostic turns your current work into a prioritized plan instead of adding another generic checklist.