Loop Control Statements in Python



Loop control statements change execution from its normal sequence. When execution leaves a scope, all automatic objects that were created in that scope are destroyed.

Python supports the following control statements. Click the following links to check their detail.

Let us go through the loop control statements briefly

Sr.No Operator & Description
1 break statement
Terminates the loop statement and transfers execution to the statement immediately following the loop.
2 continue statement
Causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.
3 pass statement
The pass statement in Python is used when a statement is required syntactically but you do not want any command or code to execute.
Updated on: 2020-01-24T12:04:27+05:30

791 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements