H
H
hea0072015-02-12 15:48:46
Python
hea007, 2015-02-12 15:48:46

Which version of python (2.7 or 3.4) should a beginner choose for learning?

I want to learn how to program in python, but I don't know which version to choose.
On the one hand, python3 is newer and the future is behind it, but not all libraries for it are ported.
On the other hand, there are any libraries for python2.7 and, therefore, it will not be necessary to solve compatibility problems that are not needed at first. But in the end, you still have to cross, it is not known how long he will live.
Help me to understand.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
U
un1t, 2015-02-12
@hea007

For a beginner, it doesn't really matter. But for real projects I would recommend 2.7. Most libraries are written specifically for it. Not everyone has switched to the third python yet, and the prospects for switching to it are vague. I asked my friends pythonists, so far 4 to 1 in favor of the 2nd python.
UPDATE: since writing this comment, I have already switched to 3.4, which I recommend to everyone.

A
alex stephen, 2015-02-12
@berezuev

3.
The second exists only to support old applications

I
ivkol, 2015-02-12
@ivkol

3

B
beduin01, 2015-02-12
@beduin01

3

D
DAlex, 2015-02-13
@DAlex

As already mentioned, not all libraries are rewritten for the third one. Another advantage of the second is the fact that in production there is usually an OS that has a native second python and no one will let you install a third one.

S
SkyNET69, 2015-08-09
@SkyNET69

only 2, personal experience, in the 3rd there is no library, then it was crookedly spoiled, still raw

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question