Using IDLE, I created a HelloWorld.py file which says:
print ("Hello World")
Attempting to run it from Terminal, however, results in this error:
xxx@xxx-VirtualBox:~/Documents$ python3.2 HelloWorld.py
File "HelloWorld.py", line 1
Python 3.2.3 (default, Oct 19 2012, 20:10:41)
^
SyntaxError: invalid syntax
I searched for an answer, but as you can see I am already using the ("") convention for strings and printing in the .py file, and when I try to run it in Terminal, I am typing "3.2". Though the SyntaxError specifically points out "2" as the problem, I did go ahead and try variations such as "python", "python3", and "python 3.2.3", and none of those worked as well. I am also in the correct directory.
I'm using Ubuntu on VirtualBox and using IDLE (Python 3.2).