Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I am using Ubuntu 13.10.I have 2 versions of python.Python2.7.6 and python3.3.2+.(I don't know what is the '+' sign)Whenever I open python 3.3.2+ and type print "hello." .I get the invalid syntax error.Whereas in python2.7.6.I have no problem.please can anyone help me out?

share|improve this question

marked as duplicate by Takkat, Aditya, Flimm, Radu Rădeanu, Amith KK Jan 7 '14 at 12:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

See docs.python.org/3/whatsnew/3.0.html - there are differences in syntax between python 2 and 3, such as print now being a function rather than a statement. print("hello") is the python 3 syntax to do this. –  chronitis Jan 7 '14 at 9:45

1 Answer 1

The print statement is gone in Python 3 and was replaced with a print Function.

Take a look at: http://stackoverflow.com/questions/826948/syntax-error-on-print-with-python-3

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.