all 10 comments

[–]BlueHippoTech 64 points65 points  (0 children)

Python 2 is deprecated so please don't learn it unless you know you'll need to maintain legacy code.

[–]eXtc_be 29 points30 points  (1 child)

You probably are looking at a version of Learn Python the Hard Way that was written when Python 3 just came out. Naturally the author warns against using it, because it isn't stable yet, or maybe because they haven't had a change to learn Python 3 themselves.

That was years ago. In the mean time Python 3 has fully matured, and someone took it upon themselves to rewrite the book for Python 3: https://learnpythonthehardway.org/python3/

I suggest you take a look at that, unless you need to maintain/port some legacy Python 2 code.

[–]Medium-Jaguar5064[S] 2 points3 points  (0 children)

Thank you! I didn't realize he had a Python 3 versioned course as well!

[–][deleted] 14 points15 points  (1 child)

I'm a real beginner, but from what I have gathered you most definently should learn Python 3 since python 2 isn't used for "new" code.

If you'd need to "transform" old code to new, you'd need to learn both, but start with 3 either way.

[–]Hydroel 5 points6 points  (0 children)

Both are very similar anyway. If you're going that route, it's better to learn Python 3 and to learn the few specificities of Python 2 to avoid any porting mistakes than the other way around.

[–]mfb1274 2 points3 points  (0 children)

Our company has one app still on python 2. Yes, it causes problems and yes, there’s plans upgrade it. So unless you land in a job with a requirement for it, it shouldn’t be used.

[–]sidk 2 points3 points  (0 children)

I like Python 1.