Language Syntax

Continue — Python syntax

Skip the rest of the current iteration and proceed to the next loop test or item. It does not suppress a loop else clause when the loop subsequently finishes normally.

Formal Syntax & Structure

python syntaxpython
continue

Working Example

Example Snippetpython
seen=[]for n in range(4):    if n%2:        continue    seen.append(n)else:    seen.append(99)print(seen)
Python Reference