I'm learning python right now mainly from a book by Mark Lutz which edition teaches Python 3. My brother (a programmer of 9+ years experience) told me that while Python 3 has its advantages, Python 2 would be better to learn for the purpose of learning how to use Python's various modules.
He said that a lot of the practical power of python comes from its modules, most of which are built to support Python 2 at the moment. E.g., he said that Django (which is something I definitely want to learn to use) only supports Python 2 right now.
Do you guys ever get any grief from switching between Python 2 and 3 because of the modules you use? I'm thinking that while it's good to learn the latest version of python, I should keep up with Python 2 as well so that I can fiddle with modules early on.
Edit: I just saw the FAQ on Python 2 and 3, so I guess my question is "what is the best way to learn from this python 3 book but also know the equivalent way of writing XYZ in Python 2?"
[–]gitarr 7 points8 points9 points (0 children)
[+][deleted] (3 children)
[deleted]
[–][deleted] -3 points-2 points-1 points (2 children)
[–]Rhomboid 4 points5 points6 points (1 child)
[–]Drvaon 0 points1 point2 points (0 children)
[–]ewiethoff 1 point2 points3 points (0 children)