Anfänger
Python
Python von Grund auf lernen. Syntax, Datenstrukturen, OOP, Generatoren, Async, Testing und Paketierung.
19 Lektionen9.3h praktisch11 Sprachen
Kostenlos lernenPython Kurs19 Lektionen, der Reihe nach
- 120 Min.
Hallo, Python
VariablesPrintRepl - 225 Min.
Zahlen und Zeichenketten
IntegersFloatsString concatenationF-strings - 315 Min.
Asking the User a Question
Input()String return typeInt() and float() conversionInteractive programs - 430 Min.
Kontrollfluss
If/elif/elseComparison operatorsBoolean operatorsWhile loopsFor loopsBreak and continue - 530 Min.
Listen und Tupel
List creationIndexingSlicingAppendPopIteration+2 - 630 Min.
Wörterbücher und Mengen
Dict basicsGet with defaultIterate keysIterate valuesIterate itemsSets+1 - 730 Min.
Funktionen
DefParametersDefault valuesKeyword arguments*args and **kwargsReturn values+1 - 825 Min.
Comprehensions
List comprehensionsDict comprehensionsSet comprehensionsConditional expressionsReadability tradeoffs - 930 Min.
Dateien und E/A
Open with withReading linesWriting filesPathlib.PathJson readJson write - 1030 Min.
Module und Pakete
ImportFrom importWriting your own moduleIf __name__ == "__main__"Packages__init__.py - 1135 Min.
Klassen und OOP
Class definition__init__Instance attributesClass attributesMethods__repr__ - 1230 Min.
Vererbung und Komposition
SubclassingSuper()Method overridingCompositionWhen to choose composition - 1330 Min.
Ausnahmebehandlung
TryExceptElseFinallyRaiseCustom exception classes+1 - 1430 Min.
Iteratoren und Generatoren
Iterator protocolYieldGenerator functionsGenerator expressionsLazy evaluation - 1530 Min.
Dekoratoren
Functions are objectsWrapper functions@decorator syntaxFunctools.wrapsParametrized decorators - 1625 Min.
Kontextmanager
With statement__enter__ and __exit__Writing your own context managerContextlib.contextmanager - 1740 Min.
Nebenläufigkeit: Threads und Async
GIL in plain languageConcurrent.futures.ThreadPoolExecutorAsyncio basicsAsync defAwaitWhen to use threads vs async - 1835 Min.
Testen mit pytest
Test functionsAssertRunning pytestParametrizeFixtures - 1935 Min.
Paketierung und Bereitstellung
Pyproject.tomlPip install -eConsole scriptsBuilding a wheelPublishing to PyPI
Lerne Python in deiner Sprache
Jede Lektion, jedes Quiz und jede Tutor-Antwort erscheint in deiner Sprache. Der KI-Tutor antwortet in der Sprache, in der du fragst.
