Python 3 vs Python 2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Python 3 vs Python 2

there are several deferences between 2 and 3 of Python. I was with 2 for 2 months. and now I am confused. Some are good. But some

14th Mar 2017, 7:57 PM
Harshana Leelarathna
Harshana Leelarathna - avatar
7 Answers
+ 7
@Harshana Look for QPython3. The name says it all :)
14th Mar 2017, 8:18 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
What specifically confuses you? It is best to focus on python 3 as python 2 will not really be ever updated again(except for 3rd party modules which may provide updates to themselves) Saying that however there is still a lot of python 2 code that you may have to work with or maintain in the future. Many changes that get slightly annoying are module names. In python 2 some modules such as ConfigParser are now configparser(lowercase which match the pep8 standard) Is there anything in particular you are having issues with?
14th Mar 2017, 8:06 PM
Elric Hindy
Elric Hindy - avatar
+ 2
@harshana, I did a quick search and found that i seemed to reference this link a few times :) haven't needed it in a while but might help you. http://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html The unicode things gets me all the time! but luckily simple changes make it backwards compatible. I have a few programs that have had to be python 2.6, 2.7 and 3+ compatible.
14th Mar 2017, 8:54 PM
Elric Hindy
Elric Hindy - avatar
+ 1
Nope. I have python android app. it is python 2. and I can not find a android app for python 3.
14th Mar 2017, 8:08 PM
Harshana Leelarathna
Harshana Leelarathna - avatar
+ 1
I am not worrying about modules. its just some basic keywords
14th Mar 2017, 8:09 PM
Harshana Leelarathna
Harshana Leelarathna - avatar
+ 1
the difficulty i see is so many programs utilizing python used 2 and aren't compatible with python 3. if doing new code try to stick with 3 if nothing just to be part of the solution not the problem ,but in general you'll need to have both versions available ,for now
14th Mar 2017, 8:11 PM
William La Flamme
William La Flamme - avatar
+ 1
thankz all.
16th Mar 2017, 5:10 AM
Harshana Leelarathna
Harshana Leelarathna - avatar