
- 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
Can we use continue statement in a Python if clause?
Python's continue statement is a loop control statement. It causes starting next iteration of loop after abandoning current iteration. Invariably is is executed conditionally i.e. in if block
while expr==True: stmt1 stmt2 if expr2==True: continue stmt3 stmt4
However, it can't be used in an if block if it is not a part of loop. If used, interpreter will throw syntax error.
- Related Articles
- Can we use break statement in a Python if clause?
- Can we use pass statement in a Python if clause?
- Can we use WHERE clause inside MySQL CASE statement?
- How to use continue statement in Python loop?
- How do we use continue statement in a while loop in C#?
- How can I use a label with continue statement in JavaScript?
- How can we use a MySQL subquery with FROM clause?
- How Can we use MySQL DISTINCT clause with WHERE and LIMIT clause?
- How can we use MySQL SELECT without FROM clause?
- Can we use SELECT NULL statement in a MySQL query?
- What is a continue statement in Java and how to use it?
- Can we use the result of a SUM() function in MySQL WHERE clause
- PHP continue Statement
- How can we use ASCII() function with MySQL WHERE clause?
- How can we use CHAR_LENGTH() function with MySQL WHERE clause?

Advertisements