Learn first
Programs follow precise instructions
Read together with an adult. Point, talk, or use small objects to try the idea.
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.
Read one instruction at a time from top to bottom. In this picture, step 1 draws a circle, step 2 puts a dot inside it, and step 3 adds a line below it. You can point or describe instead of drawing.
Worked example
After step 1 there is just a circle. The dot is added in step 2. A computer follows the steps it is given; it does not know a missing step.