Unit 2 · Lesson 2
Build the idea
Start with the concept and its key vocabulary.
A variable can be assigned a new value. score = score + 1 reads the old score, adds one, then stores the result back in score. Sequence matters because each line sees the value left by the line before it.
Assigning a new value to a variable that already exists.
Increasing a stored number, often by one.
Instructions carried out in order from top to bottom.