[Tutor] A total newbie…sorry

Joe Batt joebatt at hotmail.co.uk
Fri Oct 28 04:20:22 CEST 2011


I am just starting to try to learn Python on IDLE on a Mac running Python 3.2.2 (v3.2.2:137e45f15c0b, Sep  3 2011, 17:28:59) and I have come unstuck at the very beginning I tried
>>> print "Hello"SyntaxError: invalid syntax>>> print 'Hello'SyntaxError: invalid syntax>>> print "Hello"SyntaxError: invalid syntax>>> 
And as you can see its just saying invalid syntax yet if I run Python in the terminal using the same syntax it works
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> print "Hello"Hello>>> 
I can see its a different version but what is the problem?
Many thanks and sorry for the VERY basic question :(
Joe
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111028/b88d0cd6/attachment.html>


More information about the Tutor mailing list