Python
Complete Python Mastery
Code with MoshJune 2025 · 12 hrs · 200 lessons
A comprehensive Python course by Mosh Hamedani that works through the language from the basics into the breadth of its ecosystem: primitive types, control flow and functions, a large chapter on data structures (lists, tuples, sets, dictionaries, comprehensions, generators), exceptions, and an extensive part on object-oriented programming — from magic methods and properties through multiple inheritance and abstract base classes to polymorphism, duck typing and data classes. Plus modules and packages, the standard library (files, CSV, JSON, SQLite, date and time, e-mail, subprocesses), the Python Package Index including publishing your own packages, as well as practical modules on web scraping, browser automation, Excel and NumPy, a Django web application through to deployment, and an introduction to machine learning with scikit-learn. Fully completed (all lessons).
Lessons
200 across 13 sections
Format
Video course with exercises and quizzes
Contents & competencies
- Language basics: variables, strings with escape sequences and f-strings, numbers, type conversion
- Control flow: comparison and logical operators, short-circuit evaluation, chained comparisons, for and while loops, nested loops, iterables
- Functions: arguments, keyword and default arguments, *args and **kwargs, scope and debugging
- Data structures in breadth: lists with unpacking and sorting, lambda, map and filter, list and dictionary comprehensions, zip, stacks, queues, tuples, arrays, sets, dictionaries, generator expressions and the unpacking operator
- Exceptions: handling them deliberately, cleaning up, the with statement, raising your own exceptions and judging what they cost
- Object orientation: constructors, class versus instance attributes and methods, magic methods, operator overloading, custom containers, private members, properties
- Inheritance and polymorphism: method overriding, multi-level and multiple inheritance, abstract base classes, duck typing, extending built-in types, data classes
- Modules and packages: the module search path, packages and sub-packages, intra-package references, running a module as a script
- Standard library: paths, directories and files, zip, CSV, JSON, SQLite, timestamps and datetimes, random values, sending e-mail, templates, CLI arguments, external programs
- The package ecosystem: PyPI and pip, virtual environments with Pipenv, dependency management, publishing your own packages, docstrings and pydoc
- Practical packages: consuming REST APIs, hiding API keys, sending SMS, web scraping, browser automation, PDFs and Excel files, NumPy
- Django: views, models and migrations, customising the admin, templates with Bootstrap, URL parameters, 404 handling, building APIs and deploying the application
- Machine learning: reading in and preparing datasets, training models and making predictions, calculating accuracy, persisting models and visualising a decision tree
Syllabus
The course page states 12 hours and 200 lessons across 13 sections but lists individual lessons only for “Getting Started”. The outline here is therefore taken from the course player and shows all 187 lessons that were included at completion in June 2025; it lists “Getting Started” as two modules where the course page names one. The Code with Mosh certificate itself states no scope. On the course page the course is now called The Complete Python Programming Course.
Topics
OOP