Lesson 4 of 11 · 7 min
Variables: storing values
A variable is a named box that stores a value the program can use and change. In a game, a variable called score might start at 0 and go up by 1 each time you score. You can read it and change it any time.
score = 0 → score = 1
A variable stores a value that can change
Let’s try it! ✍️
Question 1 of