(Gosh, I'm a noob!) I have the latest version of Python, yet I have the stupidest problem(it's probably me). Whenever I say- print "Hello"-(no dashes) it says invalid synatx. Can someone help me? Thanks.
Offline
As Jens said, I'm working with 2.5 but the latest is 2.6
Offline
Jens wrote:
Hi adriangl,
if you're using Python 3 or above 'print' needs to be invoked as a function, not as a keyword. So the correct syntax would be
print("Hello")
Thanks. I don't know how I could of missed that....
Offline
Off topic but,
I'm intrested in new programming languages, and I wonder if Python is good
Is it?
Offline
It's good. But there probably are other languages better than it.
Offline
weswesrock wrote:
Off topic but,
I'm intrested in new programming languages, and I wonder if Python is good
Is it?
It's good, but a more beginner's language would be Just BASIC (And yes, I'm still standing up for it). It's ultra-easy and quite functional - try it out, there's a built-in tutorial.
Offline