--Originally published at M E R I N O
While loops yay.
This loops are used when you want to repeat a section of your code like printing a message if the input is wrong or if you want to interact with a variable until it’s true. like making a count to 10. You can also use else to do something when the loop ends and make it cooler. Here is an example:
But be careful, because if you write something weird or the wrong operator you can end with an infinite loop. Whoops. Like this example:
Clic here if you want to know more about While loops and here if you want to know if you’re using the right operator. Thanks for reading. CODE!