In this lesson
- It starts with a question. A program says: stock = 10, then stock = 4. What is in stock now?
- The idea you will find. Right side first, then store. — stock = stock - sold looks circular until you read it in the right order: work out the right-hand side using the current values, then put the answer in the box on the left. It is an instruction, not a statement of fact.
- Length. 5 short steps. Progress saves on this phone.
Part of Storing Values: Variables
Storing, changing and reading values — the first thing every program does.