FAQ

On Wed, May 13, 2009 at 12:18 AM, warhammer1805 at gmail.com wrote:

Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
print "hello world!"
SyntaxError: invalid syntax (<pyshell#0>, line 1)
Can anyone tell me what is wrong? I didnt expect that error....
Try:

print("hello world!")

I believe Python 3 requires parenthesis for print. Someone else can explain
why perhaps.

-sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090513/648fc888/attachment.htm>

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 7 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedMay 13, '09 at 4:18a
activeMay 14, '09 at 11:34p
posts7
users5
websitepython.org

People

Translate

site design / logo © 2018 Grokbase