Page 102 - Plus V4 with Adobe class 8
P. 102
False
Test Expression
True
Execute while Block
Program 5: To demonstrate the use of a while loop.
You will get the following output:
Hintbot
Any non-zero value in the while loop indicates always a true condition, whereas zero indicates
always-false condition.
The While Loop Using Else Statement
Python enables the use of else statement with the while loop. The else block is executed when the
condition given in the while statement becomes false.
100 Plus (Ver. 4.0)-VIII

