The Zen of Python
Nineteen aphorisms for the design of the Python language and of Python code, recorded as PEP 20 and printed by import this.
Canonical text: https://peps.python.org/pep-0020/.
Selected aphorisms
- Beautiful is better than ugly.
- Explicit is better than implicit.
- Simple is better than complex.
- Readability counts.
- Errors should never pass silently, unless explicitly silenced.
- In the face of ambiguity, refuse the temptation to guess.
- There should be one, and preferably only one, obvious way to do it.
Facts
- Maintainer
- Tim Peters, Python Software Foundation
- First published
- 2004-08-19
- Status of the text
- stable
- Listing
- listed, not yet claimed
Badge
[](https://manifesto.md/zen-of-python/) Maintainers claim a listing with a pull request setting listing: claimed, or a yes on the listing issue.