Python 2 or Python 3 | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 11

Python 2 or Python 3

I am new to python, I came across many tutorials which give a complete course on python. But some of them teaching Python 2 while other Python 3, so as a beginner which is better to learn, and why?

26th Mar 2017, 3:52 AM
Skybender
Skybender - avatar
32 ответов
+ 35
Python 3 is better and more useful!
26th Mar 2017, 5:42 AM
Giorgi R.
Giorgi R. - avatar
+ 20
You should go with Python 3. Python 2 is reaching it's end of life, and is no longer under active development. Python 3 is the replacement for python 2, and it brings many improvement, including, but not limited to: syntax, run-time, etc.
26th Mar 2017, 4:24 AM
Martian1oh1
Martian1oh1 - avatar
+ 17
@Harshit Gupta: If you're just going to copy-paste, at least provide the source. https://wiki.python.org/moin/Python2orPython3
26th Mar 2017, 6:34 AM
Martian1oh1
Martian1oh1 - avatar
+ 11
If you beginn writing in Python, you should choose Python 3. It has a lot more options, but the Syntax is a little, a litttttttle bit different to Python 2.
28th Mar 2017, 7:39 PM
devbyemil
devbyemil - avatar
+ 11
python 2 will be obsolete in the near future : join the python 3 bandwagon
29th Mar 2017, 11:24 AM
Cedric
Cedric - avatar
+ 11
Python 3 for sure.
2nd Apr 2017, 7:32 AM
Pravin Pandey
Pravin Pandey - avatar
+ 9
Which version you ought to use is mostly dependent on what you want to get done. If you can do exactly what you want with Python 3.x, great! There are a few minor downsides, such as very slightly worse library support and the fact that some current Linux distributions and Macs are still using 2.x as default (although Python 3 ships with many of them), but as a language Python 3.x is definitely ready. As long as Python 3.x is installed on your user's computers (which ought to be easy, since many people reading this may only be developing something for themselves or an environment they control) and you're writing things where you know none of the Python 2.x modules are needed, it is an excellent choice.
26th Mar 2017, 6:32 AM
Harshit Gupta
Harshit Gupta - avatar
+ 7
You should learn python 3
27th Mar 2017, 2:30 PM
Soumya Kanti Paul
Soumya Kanti Paul - avatar
+ 7
Python 2 will cease updates in 2020. Treat it as if it were already gone if you care anything about support for your projects. Python 3.6, as of this writing, is the most current and widely supported version thus far.
28th Mar 2017, 6:15 AM
Aareon Sullivan (Aareon.S)
Aareon Sullivan (Aareon.S) - avatar
+ 6
Python 2.7 have a great code base as examples, and for newbie, it is very easy to understand, why your code is not running as intended. Also, on small, educational and easy projects you will not see any differences with 3.1 (3.2) version. So it is my way. I'll also learning Python now, and 2.7 is my choice. So when you will see, where is 2.7 is not enough for current code, you already will know how to switch to the 3
27th Mar 2017, 2:51 PM
Sergey Borodkin
Sergey Borodkin - avatar
+ 5
obviously the latest one is mostly better & faster
28th Mar 2017, 2:44 AM
Digital Saurav
Digital Saurav - avatar
+ 5
Python 3 is more eficient
28th Mar 2017, 10:21 AM
Nicolae Varticean
Nicolae  Varticean - avatar
+ 3
Python 3 is the latest and they are very similar.If you have had a good command of python 3,it'll be easy for you to learn python 2.
28th Mar 2017, 3:06 AM
pikachu
+ 2
it is better to learn python 3....there are little things which are different between python 2and 3 and as python 2is ending its life as our friend said so it is better to work with python 3 from first ...u know ... and some features r improved in python 3
28th Mar 2017, 7:16 AM
parmida granfar
+ 2
use python3 it contains more features than python 2
28th Mar 2017, 7:28 AM
Mayur Chaudhari
Mayur Chaudhari - avatar
+ 2
python 3 is more usefull and it is the lastest version
28th Mar 2017, 4:30 PM
Minthang ML
Minthang ML - avatar
+ 1
undoubtedly python 3
30th Mar 2017, 6:10 PM
Ahmed Rakib Imran
Ahmed Rakib Imran - avatar
+ 1
python 3 is good choice for new learners.
1st Apr 2017, 6:08 AM
kkr@kkr
kkr@kkr - avatar
+ 1
Python 3 is more useful for you, and it has a lot more options.
1st Apr 2020, 10:42 AM
Iman Sharifpour
Iman Sharifpour - avatar
0
Python 3 is the most efficient
28th Mar 2017, 5:46 PM
David Kofi Saah
David Kofi Saah - avatar