Page 101 - Plus V4 with Adobe class 8
P. 101
Program 3: To print your name nine times using for loop with range() function.
On running the above program, we get the following output:
Program 4: To print multiplication table of an input number.
On running the program, we get the following output:
THE WHILE STATEMENT
The while statement executes a set of statements repeatedly, until the logical expression evaluates
to true. When the condition becomes false, the control comes out of the loop. The syntax of while
statement is given below. Syntax:
while (test expression):
Statements
increment/decrement
#Loops in Python 99

