Students examine a long, repetitive set of instructions and 'refactor' it by grouping repeated actions into named modules or functions. They see how this makes the solution cleaner and easier to read.

Similar Lessons