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.
2 odpowiedzi
+ 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.
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.