On Sun, Jan 04, 2015 at 09:53:37PM -0600, boB Stepp wrote: > On Sun, Jan 4, 2015 at 8:39 PM, Steven D'Aprano <st...@pearwood.info> wrote: [...] > > Don't be distressed! You've just stumbled across a small difference > > between Python version 2 and version 3. In Python 3, you should use > > "raw_input" instead of "input", so your code will look like this: > > In the paragraph above, I believe that Steven meant to say, "... > version 3. In Python 2, you should use ...", which should be evident > from his earlier comments.
D'oh! I mean, well done Bob, you have passed my cunning test to see who was paying attention. :-) Yes, you are correct. Use raw_input in Python 2, and input in Python 3. -- Steven _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor