[Tutor] what is it mean--- File "<stdin>", line 1

sihong lin linsihong2003 at yahoo.com
Mon Mar 21 01:58:58 CET 2011


Hi, 

 I just write a simplest file test.py with only one line--print "hello", when I run it in command line:
>>> python test.py

the follow message comes out:

File "<stdin>" , line 1
 python test

SyntaxError: invalid syntax

but, the file can run in shell, also in the command line, I put

>>> print "hello"

output is fine, "Hello"

thanks
Sharon 



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110320/80242ebc/attachment.html>


More information about the Tutor mailing list