
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
How to use continue statement in Python loop?
The loop control statement continue abandons the pending statements in current iteration of the looping block and starts next iteration. The continue statement appears in a conditional block inside loop
Example
x=0 while x<10: x=x+1 if x==5: continue print ('x=',x)
The output shows that when x is 5 the print statement is not executed and next iteration is undertaken printing from x=6 onwards
Output
x= 1 x= 2 x= 3 x= 4 x= 6 x= 7 x= 8 x= 9 x= 10
- Related Articles
- How do we use continue statement in a while loop in C#?
- Java continue statement with Loop
- Can we use continue statement in a Python if clause?
- How to use else conditional statement with for loop in python?
- What is a continue statement in Java and how to use it?
- How to use PowerShell break statement in foreach loop?
- How can I use a label with continue statement in JavaScript?
- How to use for loop in Python?
- How to use PowerShell Break statement with the While Loop?
- How to use PowerShell break statement with the For loop?
- PHP continue Statement
- How to use for...in statement to loop through an Array in JavaScript?
- Continue Statement in C/C++
- The continue statement in JavaScript
- Continue statement in Dart Programming

Advertisements