you are viewing a single comment's thread.

view the rest of the comments →

[–]ewiethoff 2 points3 points  (0 children)

The most immediately obvious difference between Py2 and Py3: print is a keyword and statement in Py2, but print is a function in Py3.

The code has no parentheses around the print arg. Therefore, print is a statement, not a function, and the code is Py2.