0% found this document useful (0 votes)
783 views

Chapter Loop in Python Answers

Uploaded by

manav parashar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
783 views

Chapter Loop in Python Answers

Uploaded by

manav parashar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Chapter: Loops in python

Question - Answers
Answer 1. The statements that are used to repeat a set of instructions are called iterative or looping
statements.

Answer 2. The syntax of the for statement is given below:

for <variable> in <iterator>:


Statements
Answer 3. Python offers two jumping statements—break and continue, which are used within the loop
to terminate and skip over the part of loop.

Answer 4. The flowchart of the for loop is given below:

Answer 5: 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

6. The break is a keyword in Python which is used for bringing the program control out of the loop

whereas the continue statement is used inside loops.

You might also like