Re: [Tutor] Trouble executing an if statement with a string from aninput

2011-04-18 Thread Peter Otten
Alan Gauld wrote: > > "Sylvia DeAguiar" wrote > >> The code runs fine on python shell (from run module) but >> when I try to execute the program from its file, it always >> prints out c, regardless > >> x = input("a, b, or c:") >> ... >> else: >> print ('c') > > It looks like IDLE is runn

Re: [Tutor] Trouble executing an if statement with a string from aninput

2011-04-18 Thread Alan Gauld
"Sylvia DeAguiar" wrote The code runs fine on python shell (from run module) but when I try to execute the program from its file, it always prints out c, regardless x = input("a, b, or c:") ... else: print ('c') It looks like IDLE is running Python V3 where as the shell is picking u