Two main versions of python are being used: Python 2.7 and Python 3. Many questions of both versions are being asked everyday, but the problem is that sometimes I, and others, can never tell what version of python the OP is using if they don't tell us.
Sometimes it's obvious, knowing what version is used (e.g, in Python 2.7 print
is a statement and not a function. There's a nice list here). But other times it can't be. A recent question answered by me led to one user being confused on what version the OP was using. On the one hand, the OP was using print
as a function, but this is also acceptable in 2.7. On the other hand, the OP was using input()
, which is both a 2.7 and a 3 function (however the outcome is different).
There is no "massive" difference in Python 2 and 3, but these little things do matter on some questions.
I think we must force people asking python questions to include what type of version they are using, whether that's a tag (probably this because it's more easier to notify the OP that they did not include what version they're using) or in the question.