def getBracketValuesDeleteEvaluator(bracketBeginIndex, bracketEndIndex, evaluators):
 evaluatedExpressionValueEvaluators = getBracketEvaluators(bracketBeginIndex, bracketEndIndex, evaluators)
 bracketValues = []
 for evaluatedExpressionValueEvaluator in evaluatedExpressionValueEvaluators:
  bracketValues.append(evaluatedExpressionValueEvaluator.value)
 del evaluators[(bracketBeginIndex + 1):(bracketEndIndex + 1)]
 return bracketValues

def getBracketValuesDeleteEvaluator ( bracketBeginIndex , bracketEndIndex , evaluators ) : evaluatedExpressionValueEvaluators = getBracketEvaluators ( bracketBeginIndex , bracketEndIndex , evaluators ) bracketValues = [ ] for evaluatedExpressionValueEvaluator in evaluatedExpressionValueEvaluators : bracketValues . append ( evaluatedExpressionValueEvaluator . value ) del evaluators [ ( bracketBeginIndex + 1 ) : ( bracketEndIndex + 1 ) ] return bracketValues
get the bracket values and delete the evaluator .