human
Python: How can I find all files with a particular extension?
assistant
Here is some code to find all files with extension '.c' in directory `folder`

results += [each for each in os.listdir(folder) if each.endswith('.c')]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.