Python
One of the programming languages that emphasizes readability. The features are as follows.
--Full documentation --Interpreter type --Supports object orientation --Dynamic data type --Block definition by indentation --Full machine learning module --Can be incorporated into an application and used as a script interface --Can be run on various operating systems such as Windows, Linux / Unix, OS / 2, Mac, Amiga, etc. --Open source license
Official documentation: https://docs.python.org/ja/3/
As the major version changes from 2 to 3, there are many changes such as function definition changes and abolitions, and type rule changes. You will also be able to use a technique called Extended Iterable Unpacking.
For example, in 2.x series, 1>'a'
becomes True, but in 3.x series, TypeError is thrown.
Looking at the article summarizing the differences, there are many improvement changes overall (naturally), so it seems better to use the 3.x series, but of course there should be modules that only work with Python 2.x. So you have to adjust.
It seems that the code conversion from 2 to 3 is well maintained.
https://docs.python.org/ja/3/library/2to3.html
However, for those who are accustomed to v2, there is some resistance, and sometimes there are people who use v2 and v3 properly.
Recommended Posts