Blog

Python. The Zen of Python

[{"Id":"201901292059430249","ParentId":"20180901160701623031","Type":"RawHtml","Sequence":1,"Attributes":{"Text":"

\r\n\r\n
According to Wikipedia, the Zen of Python is a collection of 20 software principles that influences the design of Python Programming Language—only 19 of which were written down—around June 1999 by Tim Peters. The principal text is released into public domain.
\r\n\r\n

The Zen of Python

\r\n\r\n
\r\nBeautiful is better than ugly.\r\nExplicit is better than implicit.\r\nSimple is better than complex.\r\nComplex is better than complicated.\r\nFlat is better than nested.\r\nSparse is better than dense.\r\nReadability counts.\r\nSpecial cases aren't special enough to break the rules.\r\nAlthough practicality beats purity.\r\nErrors should never pass silently.\r\nUnless explicitly silenced.\r\nIn the face of ambiguity, refuse the temptation to guess.\r\nThere should be one-- and preferably only one --obvious way to do it.\r\nAlthough that way may not be obvious at first unless you're Dutch.\r\nNow is better than never.\r\nAlthough never is often better than *right* now.\r\nIf the implementation is hard to explain, it's a bad idea.\r\nIf the implementation is easy to explain, it may be a good idea.\r\nNamespaces are one honking great idea -- let's do more of those!\r\n
"}}]