Repeat Until: while Loops
A for loop is for a number of rounds that you know. A while loop is for the cases where you do not know: keep saving until there is enough, keep asking until the answer is right, keep going until something happens. In this course you write while loops, learn what makes them stop, leave a loop early with break, skip a round with continue, and ask the user again and again. A lesson on the loops that go wrong shows how to choose between for and while, and how to find an endless loop and a loop that is off by one. A guessing game with hints and a limit of tries is the project. The practice runs your loops and tells you which results are wrong.