pythonreference.com

search statements, functions, methods, exceptions*

show 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