First page Back Continue Last page Overview Graphics

Loops

Most programming languages need loops to repeat the execution of a statement block while some condition is true.

Python has two

kinds of loops: