The Philosophy Of Python

The philosophy 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. 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!

Die Philosophie von Python

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.

More Posts from Python-programming-language and Others

Der Umgang mit dem flexiblem Datentyp "Dictionary" ...

Python Dictionary • Erklärung und viele Beispiele
Studyflix
Python Dictionary: dict() einfach erklärt ✅ Dictionary Beispiel ✅ Dictionary erstellen & verändern ✅ mit kostenlosem Video
Der Umgang Mit Dem Flexiblem Datentyp "Dictionary" ...

Post #125: StudyFlix, Python, Dictionary, Erklärung und viele Beispiele, 2024.


Tags

Object-Oriented Programming in Python ...

Object-Oriented Programming in Python – Explained in Plain English
freeCodeCamp.org
> “Any fool can know. The point is to understand.” - Albert Einstein Object-oriented programming is a popular way to write computer programs

Post #80: FreeCodeCamp, Object-Oriented Programming in Python, Explained in plain English, 2023.


Tags

Catch my number with a random number ...

The source code of my exercise ...

Catch My Number With A Random Number ...

The output of my source code ...

Catch My Number With A Random Number ...

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 ...

Catch My Number With A Random Number ...

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.


Tags

My latest certificate from Udemy ...

My Latest Certificate From Udemy ...

Post #156: Udemy, Loek van den Ouweland, Objekt Oriented Programming (OOP) with Python for beginners, 2025.


Tags

Colors in the terminal for Python with "Colorama" …

Farben im Terminal für Python mit Colorama
HelloCoding
Um farbigen Text auf der Konsole darzustellen, gibt es einfache Möglichkeiten. Ich zeige dir, welche Module es gibt und wie es ganz ohne geh

Post #43: HelloCoding, Farben im Terminal für Python mit "Colorama", Eine Anleitung zum Gebrauch des Moduls, 2023.


Tags

Question: What do BASIC and PYTHON really have in common?

Question: What Do BASIC And PYTHON Really Have In Common?
Python.org
The official home of the Python Programming Language

Post #15: www.python.org, Computer programming for everybody, 2023.


Tags

The use of variables in Python ...

Variables in Python – Real Python
realpython.com
Learn how every item of data in a Python program can be described by the abstract term "object," and how to manipulate objects using symboli

Post #126: Real Python, Variables in Python, 2024.


Tags

Python Tutorial #23 Der Self-Parameter ...

Post #89: YouTube, Programmieren Starten, Python Tutorial, 23/24 Der "Self" Parameter, 2023.


Tags

Top 11 Python Newsletters

Top 11 Python Newsletters
stxnext.com
Read our list and discover the best Python newsletters you should subscribe to if you’re looking to stay up to date on the latest Python-rel

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.


Tags
Loading...
End of content
No more pages to load
  • python-programming-language
    python-programming-language liked this · 1 year ago
  • basic-retro-programming
    basic-retro-programming liked this · 1 year ago
  • street--art--pics
    street--art--pics liked this · 1 year ago
  • streetart-everywhere
    streetart-everywhere liked this · 2 years ago
  • redheaded-techpriest
    redheaded-techpriest reblogged this · 2 years ago
  • n-is-studying
    n-is-studying liked this · 2 years ago
  • fatepony
    fatepony liked this · 2 years ago
  • non-threatening-feminist-boy
    non-threatening-feminist-boy liked this · 2 years ago
  • dougfort
    dougfort reblogged this · 2 years ago
  • dougfort
    dougfort liked this · 2 years ago
  • xiabablog
    xiabablog liked this · 2 years ago
  • elu-xx
    elu-xx reblogged this · 2 years ago
  • python-programming-language
    python-programming-language reblogged this · 2 years ago
python-programming-language - Python Programming
Python Programming

Fan, Exploration & Learning Page

173 posts

Explore Tumblr Blog
Search Through Tumblr Tags