Loops are used in programming to make a repeated sequence of instructions. The loop will run over and over again until the condition is met.
A loop is an instruction that tells the computer to do something repeatedly, or it is a repeating block of instructions. Loops are often used when you want to repeat certain instructions many times without having to enter them more than once.
There are two types of loops:
A counting loop will count from a starting point, through a sequence of numbers, and then back again. This type is often used in games or when you need to display different steps in order in sequential order
A conditional loop checks for some condition before deciding whether the next command should be executed or not. If another condition fails, it can jump out of the loop by skipping