Mastery 13 - While
Sometimes when programming it’s necessary to work with calculation that require to be repeated multiple times, so instead of writing the same step multiple times we can use loops. One of the most common way to use these loops is the “while” loop. For me the perfect way to understand what the while loop does is to create a counter just like the one on the photo. What this loop does is that checks if the boolean condition after while is true or false, if true it follows the indented statements and repeat the process. If at some point the boolean condition it’s false it will automatically stops.













