0

hello there, well i just started python, and well came to grinding halt.
Why doesnt this work when i enter this...

print "hello world"

it gives me

IDLE 3.0      
>>> print "hello world"
SyntaxError: invalid syntax (<pyshell#0>, line 1)
>>>

can anyone help me?

-cheers

6
Contributors
8
Replies
9
Views
8 Years
Discussion Span
Last Post by sneekula
1

With python 3.0, print is no longer a statement but a function and you must write

print("hello world")
0

thanks. Can you suggest some tutorials?, all the ones on the net seem to be outdated and i cant get some of them to work...

0

Im using the python wiki to learn, however since most of the stuff is outdated what should i do?.

regards.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.