WissensdatenbankPrüfungszentrum
DEDeutsch
Sprache wählen13

CKTIS / Python

Wissensdatenbank — Python

Syntax, Operatoren und Programmierkonzepte. Finde eine Erklärung, sieh dir ein Beispiel an und lerne weiter.

Einträge: 583

Python

Schlüsselwort break

Verlässt die innerste Schleife und überspringt deren else-Block.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort case

Wählt einen match-Zweig durch Muster und danach optionale Schutzbedingung.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort class

Der Klassenrumpf läuft sofort in einem eigenen Namensraum, und der Name erhält das Ergebnis der Dekoratoren, die das Klassenobjekt ersetzen können.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort continue

Überspringt den Rest des aktuellen Durchlaufs der nächsten Schleife. for fordert das nächste Element an, while prüft seine Bedingung neu.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort def

Beim Ausführen von def entsteht eine Funktion, und der Name wird an das Ergebnis der Dekoratoren gebunden, die sie ersetzen können.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort del

Löst eine Namensbindung oder veranlasst die Löschung eines Attributs oder Elements am Objekt.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort elif

Prüft eine Alternative erst nach falschen vorherigen if- und elif-Bedingungen.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort else

Nach if behandelt else den Fall ohne wahren Test.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort except

Behandelt die erste passende Klausel für den Ausnahmetyp oder seine Basisklasse.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort False

Das Literal False bezeichnet eines der beiden bool-Objekte.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort finally

Führt Aufräumcode beim Verlassen von try aus, auch bei Rückgabe oder Ausnahme.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort for

Wertet den Iterable-Ausdruck einmal aus, holt den Iterator und weist jedes nächste Element dem Ziel zu.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort from

Bindet beim Import ein ausgewähltes Mitglied des Moduls an einen Namen, auf Wunsch unter einem Alias.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort global

Ordnet die genannten Namen im gesamten aktuellen Block dem Modulnamensraum zu.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort if

Prüft den Wahrheitswert nach Python-Regeln ohne Vergleich mit True.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort import

Sucht ein Modul, initialisiert es bei Bedarf und bindet einen Namen im aktuellen Namensraum.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort lambda

Erzeugt aus einem einzigen Ausdruck eine Funktion, die beim Aufruf dessen Wert zurückgibt.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort match

Wertet das Subjekt einmal aus und prüft case-Muster der Reihe nach.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort None

Bezeichnet das einzige Objekt vom Typ NoneType und steht häufig für ein fehlendes Ergebnis.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort nonlocal

Verweist auf die nächste bestehende Bindung in einer umgebenden Funktion und erlaubt ihre Neuzuweisung.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort pass

Erfüllt die Forderung nach einem nichtleeren Block ohne eigene Aktion.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort raise

Wirft eine BaseException-Instanz oder eine geeignete Ausnahmeklasse.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort return

Verlässt die aktuelle Funktion mit dem Ausdruckswert oder ohne Ausdruck mit None.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

Schlüsselwort True

Bezeichnet das bool-Objekt für wahr.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested