The While Statement

<< Click to Display Table of Contents >>

Navigation:  Scriptiing > Python > Control Statement >

The While Statement

The while statement executes statements until the associated expression evaluates to false.

i = 10

while i > 0:

 print i

 i = i-1