statements operators functions string methods set methods tuple methods dict methods file methods list methods exceptions exception types comprehensions multidimensionals os lambdas subprocess
Intro to Python

Session 1 Session 2 Session 3 Session 4 Session 5 Session 6 Session 7 Session 8 Session 9




pythonreference.com

search statements, functions, methods, exceptions*

hide categories

continue
jump loop execution to the top of a looping block
files = ['.bashrc', 'file1.txt']
for fname in files:

    if fname.startswith('.'):
        continue

    print(fname)
'continue' can be placed anywhere in a looping block; if it is reached, execution immediately drops below the block