Does it make sense to use Python 2 now? I've heard that Python 2 has a performance higher than 3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Does it make sense to use Python 2 now? I've heard that Python 2 has a performance higher than 3

18th Apr 2018, 7:22 PM
Alihuseyn Kengerli
Alihuseyn Kengerli - avatar
2 Answers
+ 3
Yes, performance of Python 2 in most cases is higher than for Python 3. However, it is a bit useless to talk about Python and performance in one sentence. I mean if you really need THE performance - do your project on C++. :-) It doesn't mean that you should not do any project on Python, I know some very good projects made on Python, but for all of them performance of v3 is more than enough. That's quite correct that if are new in Python - go directly to version 3. All new stuff in Python is developing for it and than sometimes implements for v2. However, if you plan to work on very specific project (or do a maintenance or further development of the project existing for many years) there is a chance that you will have to use some libraries written for Python 2 only (with some old libraries for x86 architecture only). Well, than you will decide either port them to v3 or use v2 in this project. But it is not at all difficult to master v2 if you know well v3.
27th Apr 2018, 1:25 AM
Nevfy
+ 2
If you are learning python, definitely go with Python 3. If, in the future, you desperately need a module which is only available in Python 2, you can always learn v2 later. However, the odds that this will happen are low.
23rd Apr 2018, 7:16 AM
Johannes
Johannes - avatar