The PEP that contains the Zen of Python is PEP 20.
Written by Python developer Tim Peters, the Zen of Python presents guiding principles for designing and writing Python code. Its 19 written aphorisms include “Readability counts,” “Explicit is better than implicit,” and “There should be one—and preferably only one—obvious way to do it.” The document humorously refers to 20 aphorisms, although one has never been filled in.
The principles first appeared in a 1999 Python community discussion and were later recorded as an informational Python Enhancement Proposal. They are also built into Python as an Easter egg: running `import this` displays the text in the interpreter. PEP 20 is sometimes confused with PEP 8, which describes Python’s style conventions, or PEP 257, which covers docstring conventions. Those documents are related to code quality, but neither contains the Zen of Python itself.