Learn first
Programs follow precise instructions
A program is a set of instructions. A variable stores a value. A condition chooses between paths. A loop repeats steps. Output is the result produced.
How to work it out Trace one instruction at a time. Keep a record of values and check exactly when a condition or repeated step is evaluated.
A separate example In a separate trace, start with n = 2, add 3, then double n. The two instructions happen in order: 5 is an intermediate value before the final result.
A program is a set of instructions a computer can follow. Our drawing plan is plain-language practice, not code to paste into a computer. Start with a blank page and carry out each instruction in order.
Worked example
The plan says draw a circle, add a dot inside, then add a line below. After the second instruction the circle and dot exist, but the line does not yet exist.