Pythonにもプログラミングお作法があります。それは「Pythonic」と「The Zen of Python」になります。Pythonの学習を始める前にご一読いただけると、学習効率が高まると考えております。

なお、当協会は「Pythonic」と「The Zen of Python」を一人でも多くの方に理解してほしいと考え、以下のサイトで無料の検定試験を実施しています。(合格者には認定証が発行されます)興味がある方は以下より受験いただけると幸いです。

PythonZen & PEP 8 検定試験のWebサイトへ




A common neologism in the Python community is pythonic, which can have a wide range of meanings related to program style.
To say that code is pythonic is to say that it uses Python idioms well, that it is natural or shows fluency in the language, that it conforms with Python’s minimalist philosophy and emphasis on readability.
In contrast, code that is difficult to understand or reads like a rough transcription from another programming language is called unpythonic.

The Zen of Python(Pythonの設計について記述されたイディオム集)

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea — let’s do more of those!


「Zen」は日本語の「禅」から来ています。The Zen of Python とは、Pythonの禅としてPythonの設計について記述されたイディオム集です。Pythonのインタプリタで、 import this と実行すると英文で内容が表示されます。