A loop is a way to repeat a set of instructions multiple times. Rather than writing the same code over and over, we can use a loop to execute the same block of code multiple times. This repeated process is known as iteration. Each time the block of code runs, it completes one iteration.
A while loop is a type of loop that continues to execute a block of code as long as a certain condition is true. Before each iteration, it checks whether the condition is met to decide whether to continue or to stop. That condition is a boolean expression, meaning it must be either true or false.