Variables and counting: Pemi's seed store
The PEEMS team · Published November 10, 2026 · 3 min read

A variable is like a labelled box in which a program remembers a value, such as how many seed bags it has picked up. Pemi CS's seed store level helps children in grades 3–5 meet this idea.
Have you ever asked your child to count the seed bags bought at the store? To avoid forgetting the number, they might write it down or keep it in their head. In programming, that remembering is done by a variable.
What is a variable?
Think of a variable as a box with a label on it. The label is a name (for example "bags"); inside the box is a value (for example 0). A program can:
- Set the value: "set bags to 0".
- Change the value: "change bags by 1".
- Read the value: "say how many bags we have".
Thanks to variables, a program can remember what has happened and count.
In the game: the seed store
In one Pemi CS level for grades 3–5, Pemi visits the seed store. The farmer needs the seed bags brought back and an exact count for the planting book. Children use a variable to count: set it to 0 at the start, add 1 each time a bag is picked up, and finally say the number.

It is a fill-in-the-slot level: children complete the program, press Run, and check the number. If it is wrong, the Step button shows where the variable changes value.
Why meet variables early?
- Understanding "remember and update a value" is the foundation of scores in games, countdown timers and shopping carts.
- Children practise following a program step by step to see how a value changes, a useful skill when debugging.
- In Python the idea is exactly the same; only the way of writing it differs.
Try it at home (no screen needed)
Use a cup labelled "score" and a few pebbles. Each time your child finishes a small task, add a pebble. Ask: "How many are in the cup now?" The cup itself is a variable.
Frequently asked questions
How is a variable different from an ordinary number? An ordinary number stays the same. A variable has a name, and the value inside can change while the program runs.
Can a child who has not done much maths understand it? Yes. The "labelled box" idea is much closer to everyday life than formulas, and children understand it by counting objects.
Does learning variables mean learning Python right away? Not necessarily. This level still uses blocks, so children can meet the idea before the syntax.
Can the value in a variable only go up? No. The program decides how the value changes: up, down or back to the start. This level uses a variable for counting, so the value goes up step by step.
Want to try it together?
Would your child like the seed store level? Pemi CS is open and international families are welcome to register their interest by email.
Keep reading: From block coding to Python: when is the right time to switch? · If/else conditions: which way does Pemi go?
The PEEMS team


