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

Recommended Answers

All 8 Replies

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

print("hello world")

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...

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

regards.

Thanks for the info on a Python3.0 tutorial.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.