Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 was marked as an exact duplicate of an existing question.

See - 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

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

Take a look at:

share|improve this answer

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