"rick" <[email protected]> wrote
while True: reply = input('Enter text:') if reply == 'stop': break print(reply.upper())which works "as advertised" in an interactive session, but not in a script. Yes, I tried tossing the script to both versions of interpreter, it doesn't work with either 2.6 or 3.1.
Somehow you are picking up an older v2 interpreter. How are you running the script?
From within IDLE? Or from an OS command?
If the latter try using the full path to the v3 Python interpreter. HTH, -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
