The Zen of Python is a collection of 19 "guiding principles" for writing computer programs that influence the design of the Python programming language. Software engineer Tim Peters wrote these principles and posted them on the Python mailing list in 1999. Peters' list left open a 20th principle "that Guido must fill in," referring to Guido van Rossum, the original author of the Python language. The vacancy for a 20th principle has not been filled. (www.wikipedia.com)
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
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.
Although that way may not be obvious at first unless you're Dutch. LOL
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Das Zen von Python ist eine Sammlung von 19 "Leitprinzipien" für das Schreiben von Computerprogrammen, die das Design der Programmiersprache Python beeinflussen. Der Software-Entwickler Tim Peters schrieb diese Prinzipien auf und veröffentlichte sie 1999 auf der Python-Mailingliste. Peters' Liste ließ ein 20. Prinzip offen, das "Guido" ausfüllen muss, und bezog sich dabei auf Guido van Rossum, den ursprünglichen Autor der Python-Sprache. Die Vakanz für ein 20. Prinzip wurde nicht besetzt. (www.wikipedia.com)
Schön ist besser als hässlich.
Explizit ist besser als implizit.
Einfach ist besser als kompliziert.
Komplex ist besser als undurchschaubar.
Flach ist besser als verschachtelt.
Spärlich ist besser als beschränkt.
Lesbarkeit zählt.
Spezialfälle sind nicht speziell genug, als dass sie die Regeln sprengen dürften.
Obwohl die praktische Anwendbarkeit die Reinheit übertrifft.
Fehler sollten nie schweigend verlaufen.
Außer man hat sie explizit zum Schweigen gebracht.
Im Angesicht der Mehrdeutigkeit widerstehe der Versuchung zu raten.
Es sollte einen --- und bevorzugt genau einen --- offensichtlichen Weg geben, es zu tun.
Obwohl dieser Weg auf den ersten Blick nicht offensichtlich erscheinen mag, außer man ist Holländer. LOL
Jetzt ist besser als nie. Obwohl nie oft besser ist als JETZT SOFORT.
Wenn die Implementierung schwer zu erklären ist, ist es eine schlechte Idee.
Wenn die Implementierung einfach zu erklären ist, könnte es eine gute Idee sein.
Namensräume sind eine glänzende Idee --- lasst uns mehr davon machen!
Post: #34: Tim Peters, The Zen Of Python, 1999.
Post #125: StudyFlix, Python, Dictionary, Erklärung und viele Beispiele, 2024.
Post #80: FreeCodeCamp, Object-Oriented Programming in Python, Explained in plain English, 2023.
Post #74: YouTube, Indently, The new features of Python, version 3.12, 2023.
The source code of my exercise ...
The output of my source code ...
I came up with this little exercise in which a six-digit number entered by the computer has to be matched exactly with a generated random number. You can imagine that with the many attempts, the million mark is quickly exceeded.
The source code of my exercise ...
On this occasion I also tried the "Colorama" module for Python, which allows you to set the foreground and background color in the console.
Post #42: Exercise - Catch My Number With A Random Number, 2023.
Post #156: Udemy, Loek van den Ouweland, Objekt Oriented Programming (OOP) with Python for beginners, 2025.
Post #43: HelloCoding, Farben im Terminal für Python mit "Colorama", Eine Anleitung zum Gebrauch des Moduls, 2023.
Post #15: www.python.org, Computer programming for everybody, 2023.
Post #126: Real Python, Variables in Python, 2024.
Post #89: YouTube, Programmieren Starten, Python Tutorial, 23/24 Der "Self" Parameter, 2023.
Python Weekly
PyCoder's Weekly
Awesome Python Weekly
Python Morsels Newsletter
PYnative Newsletter
Real Python Newsletter
Better Developers
Powerful Python Newsletter
PSV Newsletter
Coffee Bytes
STX Next Newsletter
Post #227: STX Next Newsletter, Katarzyna Strzebońska-Kosińska, Top 11 Python Newsletters, 2025.