Coding: variables, counters and data

Sign up free to unlock this topic

Kindergarten is free, and guests can try one sample topic in every other grade. A free parent or teacher account opens every topic from Kindergarten to Grade 12 and saves progress. No credit card.

Try the free sample: Multiply and divide integers · Have a class or homeroom code? Join here

Key idea: Coding: variables, counters and data

Programs use variables to store values, counters to count, and subprograms to reuse steps. Follow the code line by line, updating each variable as you go.

Key words

Variable
A named value that can change.
Subprogram
A named set of steps used more than once.

🔎 What to look for: Keep a little table of each variable's value and update it after every line.

Zero2Hero — Zéro2Héros