The Zen


When I was learning Python, I just overcame the term, ' The zen of python'...

According to the dictionary as per google,
Zen - a Japanese school of Mahayana Buddhism emphasizing the value of meditation and intuition rather than ritual worship or study of scriptures.
Also, the Zen state of mind literally means, the mind without mind and is also referred to as the state of "no-mindedness". That is, a mind not fixed or occupied by thought or emotion and thus open to everything. It is translated by D.T. Suzuki as "being free from mind-attachment".


Both the definitions are sufficient enough to understand this beautiful concept, but we use ' The Zen Of Python' in a sense of listing the python principles and in a somewhat philosophical manner, which is useful in understanding the language clearly and effectively using the no-mindedness concept...


The zen of python is somewhat tongue-in-cheek set of principles that serves as a guide to programming the Pythoneer way. Use the following code to access the Zen of Python-
                                import this
It results in :
The Zen of Python, by Tim Peters


"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! "



If you clearly observed, are there are 19 lines of text in the form of principles, but if you read them carefully, actually 20 principles are given here... How? Read once, try to find!
Seems too interesting! Try yourself!
Happy reading! 😊


courtesy-
https://www.sololearn.com/


Comments

Post a Comment

Popular posts from this blog

Kamiyabi ki kitab

The fierce felines

The Story