0

Anyone knows if there is big difference between Python 2.7 (pre installed in my Linux distro) and 3.5?

I have an IDLE with 3.5 and used 2.7 in the terminal and haven't noticed something big so far. Thanks.

10th Mar 2016, 11:57 PM
DĂ©cio
DĂ©cio - avatar
2 Answers
+ 3
There is a little difference in the syntax, for example in Python 3.x you need to use parentheses with the print() function. Also, there is a difference regarding integer division, Python 2 results in an integer, where Python 3 results in a floating point number. The syntax for taking user input has also changed a little.
23rd May 2016, 10:20 AM
James Flanders
0
One major thing to think about is the future. The development for 2.x will eventually cease and you will be looking for libraries that don't work with your code. If you're brand new starting fresh, go for 3.x.
19th Jul 2016, 7:48 AM
jj Fer
jj Fer - avatar