Note: Python

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/

2.x series and 3.x series

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

Note: Python
Python note
Python study note_002
Python programming note
[Python] Learning Note 1
Python study note_004
Python study note_003
[Note] openCV + python
Python beginner's note
Note
[Note] future sentence ~ Python ~
[Note] File reading ~ Python ~
Python
Note
Note
Note to daemonize python
Note: python Skeleton Nya
Python basic grammar note (4)
Python basic grammar note (3)
Python Tkinter Primer Note
Python Input Note in AtCoder
[Note] Operate MongoDB with Python
[WIP] Fluent Python Study Note
3 months note for starting Python
[AtCoder] ABC165C Personal Note [Python]
Note that it supports Python 3
A note about [python] __debug__
kafka python
Django note 4
Python Summary
Built-in python
Python comprehension
Python technique
pyenv note
Python Note: About comparison using is
Studying python
Python 2.7 Countdown
Python FlowFishMaster
Python service
python tips
[Note] Project Euler in Python (Problem 1-22)
python function ①
Python basics
Python memo
ufo-> python (3)
Python comprehension
GroupBy Note
install python
Python basics ④
Python Memorandum 2
python memo
Python: A Note About Classes 1 "Abstract"
Python Jinja2
Python increment
atCoder 173 Python
[Python] function
Python installation
python tips
Installing Python 3.4.3.
Python memo
Python iterative