def _find_file_type(file_names, extension):
 return filter((lambda f: f.lower().endswith(extension)), file_names)

def _find_file_type ( file_names , extension ) : return filter ( ( lambda f : f . lower ( ) . endswith ( extension ) ) , file_names )
returns files that end with the given extension from a list of file names .