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.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to