The three building blocks
| Block | Meaning | Everyday example |
|---|---|---|
| Sequence | Steps in order | Socks, then shoes |
| Selection | Choose a path (if… else…) | If it rains, umbrella; else sunglasses |
| Iteration | Repeat (loops) | Stir 20 times; or stir until smooth |
Count-controlled loops repeat a set number of times. Condition-controlled loops repeat until something is true.