Re: [Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread Alan Gauld
On 20/05/12 19:08, Quidam S-enfuit 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!?... As others have said you are using version 2 syntax with version 3 Python. You n

Re: [Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread Mark Lawrence
On 20/05/2012 19:08, Quidam S-enfuit 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

Re: [Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread brian arb
http://docs.python.org/release/3.0.1/whatsnew/3.0.html The print statement has been replaced with a print() function, with keyword arguments to replace most of the special syntax of the oldprint statement (*PEP 3105*

Re: [Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread boB Stepp
On Sun, May 20, 2012 at 1:08 PM, Quidam S-enfuit 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

[Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread Quidam S-enfuit
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,