
Complete Python Mastery
Umfassender Python-Kurs von Mosh Hamedani, der die Sprache von den Grundlagen bis in die Breite ihres Ökosystems durchgeht: primitive Typen, Control Flow und Funktionen, ein großes Kapitel Datenstrukturen (Listen, Tupel, Sets, Dictionaries, Comprehensions, Generatoren), Exceptions und ein ausführlicher Teil zu objektorientierter Programmierung — von Magic Methods und Properties über Mehrfachvererbung und Abstract Base Classes bis zu Polymorphie, Duck Typing und Data Classes. Dazu Module und Pakete, die Standardbibliothek (Dateien, CSV, JSON, SQLite, Datum und Zeit, E-Mail, Subprozesse), der Python Package Index samt Veröffentlichen eigener Pakete sowie Praxismodule zu Web Scraping, Browser-Automatisierung, Excel und NumPy, einer Django-Webanwendung bis zum Deployment und einer Einführung in Machine Learning mit scikit-learn. Vollständig abgeschlossen (alle Lektionen).
Inhalte & Kompetenzen
- Sprachgrundlagen: Variablen, Strings mit Escape-Sequenzen und f-Strings, Zahlen, Typkonvertierung
- Control Flow: Vergleichs- und Logikoperatoren, Short-circuit Evaluation, verkettete Vergleiche, For- und While-Schleifen, verschachtelte Schleifen, Iterables
- Funktionen: Argumente, Keyword- und Default-Argumente, *args und **kwargs, Scope und Debugging
- Datenstrukturen in der Breite: Listen mit Unpacking und Sortierung, Lambda, map und filter, List- und Dictionary-Comprehensions, Zip, Stacks, Queues, Tupel, Arrays, Sets, Dictionaries, Generator Expressions und der Unpacking-Operator
- Exceptions: gezielt behandeln, aufräumen, das With-Statement, eigene Exceptions auslösen und die Kosten davon einschätzen
- Objektorientierung: Konstruktoren, Klassen- gegen Instanzattribute und -methoden, Magic Methods, Operatorüberladung, eigene Container, Private Members, Properties
- Vererbung und Polymorphie: Method Overriding, mehrstufige und Mehrfachvererbung, Abstract Base Classes, Duck Typing, Erweitern eingebauter Typen, Data Classes
- Module und Pakete: Modul-Suchpfad, Packages und Sub-packages, Intra-package References, Module als Skript ausführen
- Standardbibliothek: Pfade, Verzeichnisse und Dateien, Zip, CSV, JSON, SQLite, Timestamps und DateTimes, Zufallswerte, E-Mail-Versand, Templates, CLI-Argumente, externe Programme
- Paket-Ökosystem: PyPI und Pip, virtuelle Umgebungen mit Pipenv, Dependency-Management, eigene Pakete veröffentlichen, Docstrings und Pydoc
- Praxis-Pakete: REST-APIs konsumieren, API-Keys verstecken, SMS versenden, Web Scraping, Browser-Automatisierung, PDFs und Excel-Dateien, NumPy
- Django: Views, Models und Migrationen, Admin anpassen, Templates mit Bootstrap, URL-Parameter, 404-Behandlung, APIs bauen und die Anwendung deployen
- Machine Learning: Datensätze einlesen und vorbereiten, Modelle trainieren und Vorhersagen treffen, Genauigkeit berechnen, Modelle persistieren und einen Decision Tree visualisieren
Kursaufbau
Die Kursseite nennt 12 Stunden und 200 Lektionen in 13 Abschnitten, listet die Einzellektionen aber nur für „Getting Started“. Die Gliederung hier ist deshalb dem Kursplayer entnommen und zeigt alle 187 Lektionen, die zum Abschluss im Juni 2025 enthalten waren; sie führt „Getting Started“ als zwei Module, wo die Kursseite eines nennt. Die Urkunde von Code with Mosh weist selbst keinen Umfang aus. Der Kurs heißt auf der Kursseite inzwischen The Complete Python Programming Course.
Getting Started4 Lektionen
- Welcome
- Questions and Support
- Connect with Me
- Learning Paths
Getting Started with Python32 Min. · 12 Lektionen
- What is Python
- Installing Python
- Python Interpreter
- Code Editors
- Bonus: Redeem Your FREE Access to PyCharm
- Your First Python Program
- Python Extension
- Formatting Python Code
- Running Python Code
- Python Implementations
- How Python Code is Executed
- Quiz
Primitive Types34 Min. · 10 Lektionen
- Variables
- Variable Names
- Strings
- Escape Sequences
- Formatted Strings
- String Methods
- Numbers
- Working with Numbers
- Type Conversion
- Quiz
Control Flow37 Min. · 14 Lektionen
- Comparison Operators
- Conditional Statements
- Ternary Operator
- Logical Operators
- Short-circuit Evaluation
- Chaining Comparison Operators
- Quiz
- For Loops
- For..Else
- Nested Loops
- Iterables
- While Loops
- Infinite Loops
- Exercise
Functions41 Min. · 14 Lektionen
- Defining Functions
- Arguments
- Types of Functions
- Keyword Arguments
- Default Arguments
- *args
- **kwargs
- Scope
- Debugging
- VSCode Coding Tricks — Windows
- VSCode Coding Tricks — Mac
- Exercise
- Solution
- A Quick Note
Data Structures1 Std. 20 Min. · 23 Lektionen
- Lists
- Accessing Items
- List Unpacking
- Looping over Lists
- Adding or Removing Items
- Finding Items
- Sorting Lists
- Lambda Functions
- Map Function
- Filter Function
- List Comprehensions
- Zip Function
- Stacks
- Queues
- Tuples
- Swapping Variables
- Arrays
- Sets
- Dictionaries
- Dictionary Comprehensions
- Generator Expressions
- Unpacking Operator
- Exercise
Exceptions20 Min. · 7 Lektionen
- Exceptions
- Handling Exceptions
- Handling Different Exceptions
- Cleaning Up
- The With Statement
- Raising Exceptions
- Cost of Raising Exceptions
Classes1 Std. 25 Min. · 22 Lektionen
- Classes
- Creating Classes
- Constructors
- Class vs Instance Attributes
- Class vs Instance Methods
- Magic Methods
- Comparing Objects
- Performing Arithmetic Operations
- Making Custom Containers
- Private Members
- Properties
- Inheritance
- The Object Class
- Method Overriding
- Multi-level Inheritance
- Multiple Inheritance
- A Good Example of Inheritance
- Abstract Base Classes
- Polymorphism
- Duck Typing
- Extending Built-in Types
- Data Classes
Modules20 Min. · 8 Lektionen
- Creating Modules
- Compiled Python Files
- Module Search Path
- Packages
- Sub-packages
- Intra-package References
- The dir Function
- Executing Modules as Scripts
Python Standard Library1 Std. · 17 Lektionen
- Python Standard Library
- Working With Paths
- Working with Directories
- Working with Files
- Working with Zip Files
- Working with CSV Files
- Working with JSON Files
- Working with a SQLite Database
- Working with Timestamps
- Working with DateTimes
- Working with Time Deltas
- Generating Random Values
- Opening the Browser
- Sending Emails
- Templates
- Command-line Arguments
- Running External Programs
Python Package Index48 Min. · 10 Lektionen
- Pypi
- Pip
- Virtual Environments
- Pipenv
- Virtual Environments in VSCode
- Pipfile
- Managing Dependencies
- Publishing Packages
- Docstrings
- Pydoc
Popular Python Packages1 Std. 30 Min. · 12 Lektionen
- Introduction
- What are APIs
- Yelp API
- Searching for Businesses
- Hiding API Keys
- Sending Text Messages
- Web Scraping
- Browser Automation
- Working with PDFs
- Working with Excel Spreadsheets
- Command Query Separation Principle
- NumPy
Building Web Applications with Django2 Std. · 22 Lektionen
- Introduction
- Your First Django Project
- Your First App
- Views
- Models
- Migrations
- Changing the Models
- Admin
- Customizing the Admin
- Database Abstraction API
- Templates
- Adding Bootstrap
- Customizing the Layout
- Sharing a Template Across Multiple Apps
- Url Parameters
- Getting a Single Object
- Raising 404 Errors
- Referencing Urls
- Creating APIs
- Adding the Homepage
- Getting Ready to Deploy
- Deployment
Machine Learning with Python48 Min. · 12 Lektionen
- What is Machine Learning
- Machine Learning in Action
- Libraries and Tools
- Importing a Data Set
- Jupyter Shortcuts
- A Real Machine Learning Problem
- Preparing the Data
- Learning and Predicting
- Calculating the Accuracy
- Persisting Models
- Visualizing a Decision Tree
- Thank You