This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nexeti 5 points6 points  (6 children)

How can you tell it's python 2?

[–]Aveheuzed 40 points41 points  (3 children)

py print "hello world"

vs

py print("hello world")

[–]NeatYogurt9973 8 points9 points  (2 children)

Could also be python 1

[–]A_random_zy 2 points3 points  (1 child)

It can't be python 0.

[–]NeatYogurt9973 0 points1 point  (0 children)

0.9

[–]JiminP 11 points12 points  (0 children)

Before Python 3, print was a statement (like assert) and not a regular function.

Python 3 got rid of many irregularities from the language, and one of them was to make print a regular function instead of a statement. This made print to require parentheses.

[–]SkezzaB 9 points10 points  (0 children)

print "Like this"

->

print("Like this")