Skip to main content
Dashboard
Alle CS50-Kurse

10 Wochen · für Einsteigerinnen und Einsteiger jeden Alters

CS50 Python – Programmieren mit Python

Einführung in Python mit Funktionen, Bedingungen, Schleifen, Tests, Dateien, regulären Ausdrücken und Klassen.

Offizielle Kursseite

Vollständiger Wochenüberblick

Jede Woche führt zu einer eigenen Lernlektion mit verständlicher Erklärung, Beispiel und Übung. Die offiziellen Vorlesungsseiten und Transkripte dienen als Quellenabgleich und sind freiwillige Vertiefung.

  1. Woche 0: Funktionen

    Vorlesungsseite

    Functions. Arguments. Side Effects. Bugs. Return Values. Variables. Comments. Pseudocode. str . Parameters. int . Operators. Interactive Mode. float . def . Scope. return .

  2. Woche 1: Bedingungen

    Vorlesungsseite

    if . elif . else . or . and . bool . match .

  3. Woche 2: Schleifen

    Vorlesungsseite

    while . for . list . range . continue . break . list . len . dict . None .

  4. Woche 3: Ausnahmen

    Vorlesungsseite

    SyntaxError . ValueError . try . except . NameError . else . pass . raise .

  5. Woche 4: Bibliotheken

    Vorlesungsseite

    Modules. random . import . from . statistics . Command-Line Arguments. sys . sys.argv . IndexError . sys.exit . Slices. Packages. PyPI. pip . cowsay . APIs. requests . JSON. __name__ .

  6. Woche 5: Unit-Tests

    Vorlesungsseite

    assert . AssertionError . pytest . Packages. __init__.py .

  7. Woche 6: Dateien einlesen und schreiben

    Vorlesungsseite

    list . open . with . sorted . CSV. dict . csv . PIL.

  8. Woche 7: Reguläre Ausdrücke

    Vorlesungsseite

    Regular Expressions. Regexes. re . re.search . re.match . re.fullmatch . re.sub . re.split . re.findall .

  9. Woche 8: Objektorientierte Programmierung

    Vorlesungsseite

    tuple . Classes. class . Objects. Attributes. Instance Variables. Methods. Instance Methods. __init__ . raise . __str__ . Properties. @property . Decorators. int . str . str.lower . str.strip . list . list.append . dict . Class Methods. @classmethod . Static Methods. @staticmethod . Inheritance. BaseException . Operator Overloading. object.__add__ .

  10. Woche 9: Weitere Python-Werkzeuge

    Vorlesungsseite

    docs.python.org . set . global . Constants. Type Hints. mypy . Docstrings. peps.python.org . argparse . Unpacking. *args . **kwargs . print . map . List Comprehensions. filter . Dictionary Comprehensions. enumerate . Generators. yield . Iterators.