I tried running a python script:
print "Hello, World!"
but I get this error.
File "hello.py", line 1 print "Hello, World!" ^ SyntaxError: invalid syntax
What is going on?
I tried running a python script:
print "Hello, World!"
but I get this error.
File "hello.py", line 1 print "Hello, World!" ^ SyntaxError: invalid syntax
What is going on?
The code you are writing is Python 2.x code, but your environment seems like Python 3.0.
here is code for python 3.x
print("Hello World")
'Hello world' you can print hello world in similar manner