Issue
I have centos 6.5
If I type python, I get:
Python 3.3.2 (default, Oct 30 2013, 08:01:17)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux
I created a file 1.py with:
print "Goodbye, World!"
I do python ./1.py
I get
File "./1.py", line 1
print "Goodbye, World!"
^
SyntaxError: invalid syntax
Solution
print("Goodbye, World!")
print
is a function in Python 3
Answered By - Andy
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.