def MatchingFileType(file_name, extensions):
    'Returns true if the file name ends with one of the given extensions.'
    return bool([ext for ext in extensions if file_name.lower().endswith(ext)])
Returns true if the file name ends with one of the given extensions.
def MatchingFileType(file_name, extensions):
    
    return bool([ext for ext in extensions if file_name.lower().endswith(ext)])