def eval_power(parse_result):
 parse_result = reversed([k for k in parse_result if isinstance(k, numbers.Number)])
 power = reduce((lambda a, b: (b ** a)), parse_result)
 return power

def eval_power ( parse_result ) : parse_result = reversed ( [ k for k in parse_result if isinstance ( k , numbers . Number ) ] ) power = reduce ( ( lambda a , b : ( b ** a ) ) , parse_result ) return power
take a list of numbers and exponentiate them .