+ 4

Difference between python 2.7 and 3.6

difference

22nd Mar 2018, 11:03 AM
Anil
Anil - avatar
9 Réponses
+ 4
They are 2 version of Python. Due to a lot of modifications in Python3, now they are working like two separate Programs. Some options of Python2 doesn't support Python3 and same way some options of Python3 also doesn't support Python2. Django framework is now support only Python3. All these happens to make Python3 more dynamic, to make more supportive with modern technology.
22nd Mar 2018, 11:30 AM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 6
There are a lot of difference between them like: 1- the print function. 2-Integer division 3-Unicode 4-xrange 5-Raising exceptions 6-Handling exceptions 7-The next() function and .next() method 8-For-loop variables and the global namespace leak 9-Comparing unorderable types 10-Parsing user inputs via input() IF YOU WANT AX EXAMPLE FOR EACH ONE AND MORE DIFFERENCE CHECK THAT: http://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html
22nd Mar 2018, 11:27 AM
Baraa AB
Baraa AB - avatar
+ 4
if you know it, please explain it in short.
22nd Mar 2018, 11:13 AM
Anil
Anil - avatar
+ 4
yea, I think so. markus
22nd Mar 2018, 4:32 PM
Anil
Anil - avatar
+ 3
please explain it in short
22nd Mar 2018, 11:06 AM
Anil
Anil - avatar
+ 3
Changes several things, can't make it short. There are lots http://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html
22nd Mar 2018, 11:12 AM
Diego ZX
+ 3
nice explanation, rehman.
22nd Mar 2018, 11:32 AM
Anil
Anil - avatar
+ 2
I hope this enlights: https://wiki.python.org/moin/Python2orPython3
22nd Mar 2018, 11:06 AM
Diego ZX
+ 2
@Anil, thanks
22nd Mar 2018, 11:43 AM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar