Re: [Tutor] infix to postfix eval

2015-08-03 Thread Laura Creighton
Hi Anish. I wanted to let you know something I found out last week. Even when you select plain text email, gmail will mangle any lines of text starting with one or more '>' marks. So when you write: >>> import string >>> string.uppercase 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' >>> string.digits

Re: [Tutor] infix to postfix eval

2015-08-02 Thread Anish Tambe
On Sun, Aug 2, 2015 at 9:39 AM, Quiles, Stephanie wrote: > > hello again! > > I have to unify these methods so that i can enter an infix, convert it to a > postfix and then solve. Here are the methods At the end of your code I added this - inFixExpr = raw_input("Enter infix string : ") postFixE

[Tutor] infix to postfix eval

2015-08-02 Thread Quiles, Stephanie
hello again! I have to unify these methods so that i can enter an infix, convert it to a postfix and then solve. Here are the methods method #1 is : class Stack: def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def push(self, item):