All About Loops
If you want to, say, print "Hello World" 10 times... instead of typing the same PRINT line 10 times, you can use a "for" loop. The following examples are in Java.
You can also achieve the same thing with a "while" loop:
do...while allows to run a loop body before checking a given condition. Here is an example:
In Python, this is not very different:
Seriously, it's that simple, folks! :) :)