Explain why the order of assignment statements matters. Give a brief example.
Think about your answer, then reveal below.
Model answer: Assignment is sequential: each statement uses the current values of variables at that moment. For example, 'a = 5; b = a + 1; a = 0' results in b = 6 and a = 0, not b = 1, because b was assigned before a changed.
Variables hold snapshots, not formulas. Each assignment reads the current state, computes a value, and writes it. Reordering assignments can produce completely different results because the state changes between lines.