Programming, Python, Data Science, Coding, Software Development.
similar with a “While-loop” too. Our while loop is saying: “While the variable ‘num’ is less than 11, print it out”. In order to make sure that we print all of the numbers, we increment the value of ‘num’ on each pass of the loop. Once our condition of num < 11 is no longer true, the loop finishes.