13 min
The till that remembers: variables
The movie theater's app knows your points the moment you scan in. Here's how a program remembers anything, and how one line changes it.
Ticket 01 · The guess
What's in the box?
Words to know
Sources and every number
Every number
- 25 points
(example number: Worked out from the example code: the last line stores the final value.) · Worked out from the example code: the last line stores the final value. - 150 points
(example number: Worked out: the starting value plus ten, after line two.) · Worked out: the starting value plus ten, after line two.