[Tutor] Issue with Python 2.7.2 - beginner needing help

Mike G msg.ufo at gmail.com
Tue Jan 10 10:14:01 CET 2012


Hi Tonyelle

Your code doesn't work as expected due to your 2nd edition book uses
Python 3x, see page xi, 'Changes in this edition'.

This would work for your version of Python...

room = 503
print 'I am staying in room number', room

If you're new, Python 2.7.2 is (IMO) a better choice, many more
tutorials, books etc available as resources, including Gaddis's 1st
edition 'Starting Out with Python' which uses Python 2x.


More information about the Tutor mailing list