def version_match(required, candidate):
 if (candidate[0] != required[0]):
  return False
 if (candidate < required):
  return False
 return True

def version_match ( required , candidate ) : if ( candidate [ 0 ] != required [ 0 ] ) : return False if ( candidate < required ) : return False return True
test that an available version satisfies the required version .