def is_archive(filename):
    '''returns boolean of whether this filename looks like an archive'''
    for archive in archive_formats:
        if filename.endswith(archive_formats[archive]['suffix']):
            return True
    return False
def is_archive ( filename ) : for archive in archive_formats : if filename . endswith ( archive_formats [ archive ] [ 'suffix' ] ) : return True return False
returns boolean of whether this filename looks like an archive