CBSE Class 10 Computer Applications Question 11 of 26

Python Conditionals and Loops — Question 2

Back to all questions
2
Question

Question 2

What are looping statements ? How are they useful ?

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