Zen of Python
The Zen of Python is a collection of 19 "guiding principles" for writing computer programs that influence the design of the Python programming language.[src] Python code that aligns with these principles is often referred to as "Pythonic".[src] Software engineer Tim Peters wrote this set of principles and posted it on the Python mailing list in 1999.[src] Peters' list left open a 20th principle "for Guido to fill in", referring to Guido van Rossum, the original author of the Python language.[src] The vacancy for a 20th principle has not been filled.[src] Peters' Zen of Python was included as entry number 20 in the language's official Python Enhancement Proposals and was released into the public domain.[src] It is also included as an Easter egg in the Python interpreter, where it can be displayed by entering import this .[src] In May 2020, Barry Warsaw (developer of GNU Mailman) used it as the lyrics to a song.[src]
The Zen of Python is a collection of 19 "guiding principles" for writing computer programs that influence the design of the Python programming language.[src] Python code that aligns with these principles is often referred to as "Pythonic".[src] Software engineer Tim Peters wrote this set of principles and posted it on the Python mailing list in 1999.[src] Peters' list left open a 20th principle "for Guido to fill in", referring to Guido van Rossum, the original author of the Python language.[src] The vacancy for a 20th principle has not been filled.[src] Peters' Zen of Python was included as entry number 20 in the language's official Python Enhancement Proposals and was released into the public domain.[src] It is also included as an Easter egg in the Python interpreter, where it can be displayed by entering import this .[src] In May 2020, Barry Warsaw (developer of GNU Mailman) used it as the lyrics to a song.[src] ==Principles== The principles are listed as follows: for i in range(len(food)): print(food[i]) As opposed to the cleaner, Pythonic method: for piece in food: print(piece) Code that is difficult to understand or reads like a rough transcription from another programming language is called unpythonic.[src]
17 sentences · 17 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Zen of Python." encyclopegia.org, 2026, https://encyclopegia.org/wiki/zen-of-python. Accessed 28 November 2026.
Chicago
"Zen of Python." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/zen-of-python.
APA
encyclopegia.org. (2026). Zen of Python. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/zen-of-python
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON