Quantcast
Channel: Education Centre
Viewing all articles
Browse latest Browse all 25

while Loop in Python

$
0
0

The while loop provides a mechanism to repeat one or more statements while a particular condition is True.


In the while loop, the condition is tested before any of the statements in the body of loop is executed. If the condition is True, only then the statements will be executed otherwise if the condition is False, the control will jump to statement, that is the immediate statement outside the while loop block.







Viewing all articles
Browse latest Browse all 25

Latest Images

Trending Articles





Latest Images