def check_archive_formats(formats):
 for format in formats:
  if (format not in ARCHIVE_FORMATS):
   return format
 return None

def check_archive_formats ( formats ) : for format in formats : if ( format not in ARCHIVE_FORMATS ) : return format return None
returns the first format from the format list that is unknown .