What’s the Zen of Python?


The Zen of Python is an Easter Egg that very long time Pythoneer (Tim Peters) channeled the guiding principals for the language’s design principals into 20 aphorisms, of which solely 19 of them are written down.

Find out how to entry this Zen of Python Easter Egg

By importing this into your Python utility, it’ll instantly print as follows:

What’s the Zen of Python?

Lovely is best than ugly.
Specific is best than implicit.
Easy is best than advanced.
Advanced is best than sophisticated.
Flat is best than nested.
Sparse is best than dense.
Readability counts.
Particular instances aren’t particular sufficient to interrupt the foundations.
Though practicality beats purity.
Errors ought to by no means move silently.
Until explicitly silenced.
Within the face of ambiguity, refuse the temptation to guess.
There must be one– and ideally just one –apparent method to do it.
Though that approach might not be apparent at first except you’re Dutch.
Now’s higher than by no means.
Though by no means is commonly higher than proper now.
If the implementation is difficult to clarify, it’s a foul thought.
If the implementation is simple to clarify, it might be a good suggestion.
Namespaces are one honking nice thought – let’s do extra of these!

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles