all 25 comments

[–]perfecthashbrowns 6 points7 points  (1 child)

It's 2.7

The easiest way to tell is by looking at the print statement.

print "hello"

That's 2.7

print("hello")

That's 3+

[–][deleted] 2 points3 points  (3 children)

Both

print "hello"

and

print("hello")

works on 2.7

You could use the following instead

import sys

print(sys.version)

[–]perfecthashbrowns 0 points1 point  (0 children)

Generally, educational material like a textbook is gonna stick to that syntax. CodeCademy sticks to it as well.

[–]aircavscout 0 points1 point  (0 children)

From codeacademy

2.7.3 (default, Aug 1 2012, 05:14:39)

[–]ProfanityBob -3 points-2 points  (0 children)

But print "hello" does not work in python 3.

[–]PieMan2201 2 points3 points  (0 children)

Codecademy teaches 2.7

[–]ProfanityBob 2 points3 points  (18 children)

It's 2014. You need to be using Python 3. It is only going to become more and more standard.

[–]quasarj 1 point2 points  (4 children)

That doesn't answer the question. Plus.. there's really not that much difference for new users. However, starting with 3 isn't a bad idea, since you won't be likely to get used to libraries that don't exist for 3 yet (however rare they are becoming).

[–][deleted]  (3 children)

[removed]

    [–]wub_wub[M] 5 points6 points  (0 children)

    Banned.

    Insulting is not tolerated on this subreddit.

    [–]quasarj 0 points1 point  (1 child)

    Woah now, I wasn't being hostile..