I am running Ubuntu 12.04 and just installed python 3.2.3 tried to save and run the "hello world program". But it will not run I keep getting a syntax error. How do you run a program in python ????.
closed as unclear what you're asking by Eric Carvalho, Thomas W., Jorge Castro, Seth♦, hexafraction Jul 8 '13 at 2:17
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.
To run a Python file, open a terminal and type:
You can also make Python files executable without having to run them from the terminal but I prefer this approach, it allows for such errors to be displayed.
To return a print vaule in Python 3.2.3 use the syntax:
Taking a complete guess, since you didn't provide any code, you're trying to run:
Had you looked at a reference for Python 3 written in the past, oh, 3 years or so, you would've known that