
We will learn for loops first. A for loop is perfect when you already know how many times you want to repeat something. Only after that do we introduce while loops, which keep going until a condition becomes false.
Play through all 12 mini-games below to build confidence with loop logic step by step.
Pick the loop that repeats a known number of times.
You know exactly how many times you want to repeat the task. Which loop should you pick?