l...@ithstech.com wrote:
Have I installed something incorrectly in Python 3.1 for Mac if I get a
syntax error on

print "hello world"

?

My Python 2.3.5 executes this just fine.  What have I missed?

Thanks much for anything, Lev



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Please take a read through http://docs.python.org/3.0/whatsnew/3.0.html for a list of changes from the 2.x series to 3.x. It includes the fact that the print command is now a function and needs to be called accordingly, ie. print("Hello world!")

--
Kind Regards,
Christian Witts


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to