Line: | Loopy Line | Type: | Exercise |
You should have completed: | Driving Test | This topic leads to: | Counting Up Once More |
This exercise revisits an earlier example of data processing (in this case adding up) and makes the code more efficient by using iteration structures.
Using a for loop executes a predictable number of times and is the ideal solution when we know or can calculate how many times to repeat a task.