Unit 2 · Lesson 1
Build the idea
Start with the concept and its key vocabulary.
A variable is a labelled place in memory. The line score = 0 creates a variable called score and assigns the integer 0 to it. Choose names that explain the value; player_name is clearer than x. A constant stores a value that should stay fixed.
A named location in memory that stores a value which can change.
A named value that should not change while a program runs.
Storing a value in a variable using the = operator.
The exact name given to a variable, constant or subroutine.