Variables, types, and tracing simple programs
Lesson time ~65 min · 5 skills · Grades 6–9
What you’ll learn
- Create and assign integer variablesNot started
Write statements like x = 5 and understand that x now holds the value 5
- Create and assign string variablesNot started
Write statements like name = 'Alice' and understand text storage
- Trace variable values through reassignmentNot started
Follow how x changes value through statements like x = 3, x = x + 2
- Trace simple arithmetic expressionsNot started
Evaluate expressions like x + y * 2 when x = 4 and y = 3
- Execute step-by-step program tracesNot started
Follow a 3-5 line program line by line, tracking all variable changes
Before you start
You should already know
- Keyboarding skills
- Following step-by-step instructions
- Order of operations
Skills this builds on
- Recognize assignment vs equality
- Identify valid variable names
Notes for teachers
Use concrete examples with relatable contexts (games, shopping, personal info). Start with single variables before introducing multiple variables. Emphasize the difference between mathematical equality and programming assignment early and often.
How this module was checked
Status: Approved