An algorithm is a list of exact steps done in order; changing the order or one step changes the result, and debugging means finding the step where the plan breaks
Put move and turn blocks in order so a robot crosses a 5 × 5 grid to its battery. Run a broken plan to find the block where it bumps into a wall, fix it, and then find the shortest plan.
An if / else statement checks a condition: when it is true the program runs the then part, otherwise the else part, never both
Change the chance of rain and run a small program that decides whether to take an umbrella. Watch the condition turn true or false, see which branch runs, and fix a condition that gives the wrong answer.
A variable is a named box that holds one value; an assignment works out the right-hand side and puts the answer in the box, replacing what was there, and the program uses the latest value
Buy notebooks at a shop with a small program: put in the price, how many and the money you pay, then step through it and watch each variable's box fill and change until the total and the change are printed.