Saturday, October 14, 2023
HomeSoftware EngineeringWhat's the Zen of Python?

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 would instantly print as follows:

What’s the Zen of Python?

Lovely is best than ugly.
Express is best than implicit.
Easy is best than complicated.
Complicated 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 principles.
Though practicality beats purity.
Errors ought to by no means move silently.
Except explicitly silenced.
Within the face of ambiguity, refuse the temptation to guess.
There needs to be oneā€“ and ideally just one ā€“apparent solution to do it.
Though that approach is probably not apparent at first until youā€™re Dutch.
Now could be higher than by no means.
Though by no means is usually higher than proper now.
If the implementation is difficult to elucidate, itā€™s a nasty thought.
If the implementation is straightforward to elucidate, it could be a good suggestion.
Namespaces are one honking nice thought ā€“ letā€™s do extra of these!



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments