def main(): from ex122_tokenizing_a_string import tokenize exp = raw_input("Insert an expression: ") li = tokenize(exp) print infix2postfix(li)
def main(): from ex122_tokenizing_a_string import tokenize from ex123_infix_to_postfix import infix2postfix exp = raw_input("Insert expression: ") inf = tokenize(exp) postf = infix2postfix(inf) print evaluate_postfix(postf)