KnowledgeBoat Logo
|

Computer Applications

What are looping statements ? How are they useful ?

Python Control Flow

3 Likes

Answer

A statement that allows a set of instructions to be performed repeatedly is known as a looping or iteration statement. Python provides looping statements in the form of for and while loop.

These statements enable a program to perform a set of instructions repeatedly. For example,

num = 3
while num > 0 :
    print num
    num = num - 1

Answered By

1 Like


Related Questions