0

What is major difference between Python 2 & Python 3 ?

30th Apr 2017, 4:03 AM
Ajinkya N. Pathak
Ajinkya N. Pathak - avatar
3 ответов
+ 12
for beginners, it's the difference between print "a" vs print("b") . there are also other changes, but generally you won't encounter them often
30th Apr 2017, 4:47 AM
Ahri Fox
Ahri Fox - avatar
+ 7
The biggest difference is that in Python3 everything is an object. No more 'statements', only objects. Nah, ok, there are also the reserved keywords. But apart from that -- all objects. That may cause backwards compatibility problems - codes and modules may not work properly, unless handled adequately. Python3 also comes with lots of new datatypes and modules embedded inside. Plus ot is still being developed, while Python2 is only under maintenance for a few years.
30th Apr 2017, 6:58 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar