http://docs.python.org/release/3.0.1/whatsnew/3.0.html
The print statement has been replaced with a print()<http://docs.python.org/release/3.0.1/library/functions.html#print> function, with keyword arguments to replace most of the special syntax of the oldprint statement (*PEP 3105* <http://www.python.org/dev/peps/pep-3105>). try print('hello world') On Sun, May 20, 2012 at 2:08 PM, Quidam S-enfuit <quidam_senf...@yahoo.com>wrote: > I have installed python on the windows 7 machine. (Tried 64 bit version > also; same error). > I tried print "Hello world" and print 'hello world'. It stated syntax > error!?... > Thanks. > =======copied from python (interactive command) /pasted > below================== > Python 3.2.3 (default, Apr 11 2012, 07:15:24) [MSC v.1500 32 bit (Intel)] > on win > 32 > Type "help", "copyright", "credits" or "license" for more information. > >>> print 'hello world' > File "<stdin>", line 1 > print 'hello world' > ^ > SyntaxError: invalid syntax > > > > > > > ==============================end==================================== > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor