Why I can't use "print" statement without the parentheses in this exercise?


I typed:

print "I got "+ str (point_total) +"points!"

It didn’t go though.
The solution was using “print()” statement.

In which cases we should use “print” and in which cases we should use “print()”? What is the difference?

The link to the exercise:


print "some text"      =>  Python 2.x

print ("some text")    =>  Python 3.x

In the earlier version, print is a construct, while in the latter it is a function. All function calls require a parenthesized argument list or zero or more arguments.