One of the challenges I often encounter when teaching introductory programming is helping students understand the concept of variables. While students can usually memorise the definition of a variable, many struggle to visualise what a variable actually represents and how it is used in coding.
To address this, I designed an interactive workbook titled "What's Inside the Sugar Container?" for beginner learners aged 10–14. The lesson uses a simple analogy based on kitchen containers to help students build a concrete understanding of variables before introducing programming syntax.
The Learning Challenge
Students are often introduced to variables as "containers that store data." However, this explanation can still feel abstract, especially for learners who are new to programming.
I wanted students to explore the relationship between:
- A variable name
- The value stored in the variable
- Why meaningful names matter in programming
Using Keynote to Create Curiosity
To capture students' attention, I created an animation in Keynote using labelled kitchen containers.
Students first see a container labelled "Sugar" and are asked to predict what is stored inside. When the container is opened, coffee beans appear instead.
This simple animation creates an element of surprise and encourages students to think about the purpose of labels.
Students quickly realise that although a container can store anything, incorrect or misleading labels make it difficult for people to understand what is inside.
Connecting the Analogy to Variables
The container analogy is then linked to programming concepts:
- Container → Variable
- Label → Variable Name
- Contents → Value
For example:
age = 12
In this example:
- "age" is the variable name
- "12" is the value stored inside the variable
Students are encouraged to see variables as labelled containers that hold information.
Why Labels Matter
The kitchen container analogy also provides an opportunity to discuss meaningful variable names.
Just as a sugar container filled with coffee beans can confuse someone in a kitchen, a variable with a misleading name can confuse anyone reading the code.
This helps students understand that good programming is not only about making code work but also about making code easy to understand.
Student Activity
After exploring the examples, students complete simple matching activities where they connect variable names to stored values. These activities reinforce the idea that variables store information and that labels help us identify what is being stored.
Reflection
Creating this workbook reminded me that complex computing concepts can become more accessible when connected to familiar real-world experiences. By using Keynote animations and everyday objects, students are able to build a stronger mental model of variables before moving on to more advanced coding tasks.
Sometimes, a simple kitchen container can be the starting point for understanding one of the most important concepts in programming.

Attach up to 5 files which will be available for other members to download.