files = ['doc1.html', 'doc2.html', 'doc3.html', 'index.html', 'image.jpeg']
filter_function = lambda name: not name.startswith('doc')
In python, how do I exclude files from a loop if they begin with a specific set of letters?