March 2021
Beginner
404 pages
5h 47m
English
Computers are great at carrying out repetitive tasks over and over again. They never get bored and will follow the instructions exactly every time. Loops are a way of getting a program to repeat a piece of code according to certain conditions.
In this chapter, we’ll cover:
A loop is a piece of code that will continue to run until a certain condition is met.
To illustrate this, here’s a diagram that shows the countdown to a rocket blastoff as a loop.

As you can see, we start at 10, say the number out loud, subtract one from the ...
Read now
Unlock full access