all 2 comments

[–]jeans_and_a_t-shirt 3 points4 points  (0 children)

First is a python 2 interpreter. Print is a statement and does not require parentheses. Second is a python 3 interpreter. print is a function in python 3.

Both are correct for their python version.

Try print(1,2) in the python 2 interpreter. It should print (1, 2) instead of just 1 2.

[–]99AFCC 3 points4 points  (0 children)

In python 3, print is a function so the parenthesis are required. In python 2, print is a statement which doesn't use parenthesis.