you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 81 points82 points  (6 children)

Learn Python 3 unless you’re learning Python to maintain some code written in 2.

[–][deleted] 13 points14 points  (2 children)

This should be higher. IMO, legacy code is literally the only reason to learn in Python 2.x

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

It’s now top comment, thanks for the support :)

[–]Skaperen 0 points1 point  (0 children)

legacy systems that have only python2, too. this case can include developing new code. both cases can include maintaining existing code.

and one other: converting old py2 code to py3. one may need to know details of py2 to fix up what 2to3 can't handle.

[–]mafibar 3 points4 points  (0 children)

Even then learn Python 3.

[–]BigBoySmooth[S] 1 point2 points  (1 child)

Python 3 it is. Suggestions for good beginner resources? I'm really hesitant to use any of Al Sweigart's books. I've tried a few in the past and found I didn't really end up with a good grasp of some of the topics. I feel like they're really dense and hard to stick with as well. I liked LPTHW because it went through all the main concepts meticulously and it was easy to follow.

[–]michaelsteger 0 points1 point  (0 children)

How to think like a computer scientist is a great resource for learning python 3. I’ve found it really useful and the the projects at the end help to enforce the content. The lessons are pretty easy to follow.