What's really going on
An algorithm is a set of steps that solves a problem, written clearly enough that someone else, or a computer, can follow it exactly. A recipe, a dance routine, and directions to a friend’s house are all algorithms. Many algorithms repeat some of their steps, and a loop is how you say “do this again” without writing the same steps over and over. Computers are good at loops because they can repeat steps millions of times without getting bored or making mistakes.