ReferenceKeywords
continue
Skips the rest of this pass and goes to the next one.
Signature
continueReturns
Nothing.
Example
Python
for n in range(5):
if n % 2 == 0:
continue
print(n)Output
1 3
Basics
Strings
Collections
Functions
Classes and objects
Modules and the standard library
Files and errors
Beyond the basics
ReferenceKeywords
Skips the rest of this pass and goes to the next one.
continueNothing.
for n in range(5):
if n % 2 == 0:
continue
print(n)Output
1 3