def evalPostfix ( expr ): s = Stack() for token in expr : if token in "+-/": val2 = s.pop() val1 = s.pop() if (token == \'+\'): s.push(val1 + val2) elif (token