the zen of python

Solutions on MaxInterview for the zen of python by the best coders in the world

showing results for - "the zen of python"
Erica
22 Jan 2021
1# To read The Zen of Python, type in:
2
3import this
4
5# But I just can't resist putting The Zen of Python in here anyway.
6
7
8
9"""
10
11The Zen of Python, by Tim Peters
12
13Beautiful is better than ugly.
14Explicit is better than implicit.
15Simple is better than complex.
16Complex is better than complicated.
17Flat is better than nested.
18Sparse is better than dense.
19Readability counts.
20Special cases aren't special enough to break the rules.
21Although practicality beats purity.
22Errors should never pass silently.
23Unless explicitly silenced.
24In the face of ambiguity, refuse the temptation to guess.
25There should be one-- and preferably only one --obvious way to do it.
26Although that way may not be obvious at first unless you're Dutch.
27Now is better than never.
28Although never is often better than *right* now.
29If the implementation is hard to explain, it's a bad idea.
30If the implementation is easy to explain, it may be a good idea.
31Namespaces are one honking great idea -- let's do more of those!
32
33"""
34
35
36"""
37If you are wondering what this is about, the Zen of Python is basically a set of rules Python 
38programmers should try to follow. But, keep in mind that this is **TOTALLY OPTIONAL**.
39"""