oops are handy, if you want to run the same code over and over again, each time with a different value.
Probably the most common type of loop, for loops, are great for when you already know how many times you want to loop through something. When using a for loop, we typically use a counter that will either increment or decrement until a condition is met. Once the condition is met, the loop will stop.
A while loop is slightly different than a for loop for the fact that it’s good to use when we don’t know how many times we want to loop through a problem beforehand. This is the key difference between using a for loop or a while loop.
Comparison operators compare two values and give back a boolean value: either true or false. Comparison operators are used in decision making and loops.