[Tutor] Could you look over my code?
steve at pearwood.info
Mon Jan 5 11:22:58 CET 2015
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 <steve at 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.
I mean, well done Bob, you have passed my cunning test to see who was
Yes, you are correct. Use raw_input in Python 2, and input in Python 3.
More information about the Tutor