encyclopegia.org

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

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1342844534 · 0.5 · snapshot enwiki-001342844534

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.