
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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. |
Advertisements