Python Loops

Python loops

Python have three types of loop:

type Description
While loop groups of the statement while a condition is true
for loops Executes a sequence(list ,triple or string) of statements multiple time
nested loops one or more loop inside any another while, for or do..while loop

Python Control loops statement

Python have control loop of loop:

type Description
break statement terminated the loop statement if condition is true
continue Statement terminated the loop current iteration, and continue with the start immediately
pass statement pass statement is a null operation; nothing happens when it executes