Brian RepkoDecember 4, 2014
expr = "28+32+++32++39" res = 0 for t in expr.split("+"): if t != "": res += int(t) print res
expr = "28+32+++32++39" print reduce(map(filter(expr.split("+"), isNonBlank), toInteger), add)