Using Loops
in any language,
during the use scripting or programming languages, you can perform a set of
statements in multiple repetitions. Loops give us the ability to run logic until a
specific condition is met. For the sake of what you use in this book, this section
shows the for loop, the while loop, the continue statement, the break statement,
and the else statement. Unlike other programming languages that signify the end
of the loop by using keywords or brackets, Python uses line indentations. You
need to focus on how your syntax is spaced when writing and testing your code.