3 ms·
So is Python 3.4 a good starting option for a newbie to learn coding or should I stick to 2.7 considering all the courses are still using 2.7?
by adidash 13y ago
So is Python 3.4 a good starting option for a newbie to learn coding or should I stick to 2.7 considering all the courses are still using 2.7?
- mildtrepidation 13y agoThat depends. If you intend to work on other people's code or currently-active projects (or anything likely to be active soon), starting with 2.7 and learning the differences later would be a good approach. If you're just using it for its own sake, or only for building things locally that either don't need to run anywhere else or only need to run where you have enough control to install your own Python, and you don't and won't need dependencies that aren't currently ported... then definitely start with 3.x. :)
- e1ven 13y agoI find 3.4 much easier to use, personally. I've written several production apps in it, and the unicode fixes in particular are a much easier, as well as little things like being able to do enums. Ultimately, they really aren't all that different- I think the differences tend to be overblown somewhat on HN. If the course/teacher you like only teaches using 2.7, learn that. You can pick up the changes from 2.7->3.4 on your own pretty easily once you know the basic language.
- takeda 13y agoYes, there's nothing you will gain by starting with 2.7. The language is polished, majority of modules are ported (currently from those that matter only twisted and opencv isn't). If you for some reason have to work on older version (for example RedHat still uses 2.6) knowing Py3 is not really an issue to program there. Of course few nice features are missing, but people seem to talk as if it is a completely different language for some reason. With Python 3 at least you have a nice more consistent language. If you were learning Java, would you start with JDK 1.3 or the latest one?
- yizzerin 13y agoThere's very little difference between the two (a few standard library differences at most + a little syntax). 3.4 (and Python 3 generally) is the future of Python. Learn it first and you'll be on good footing.