The Advanced Python Mastery

This course is designed by David Beazley, author of the Python Cookbook, released under a Creative Commons license. The goal of this course is to provide an intermediate-level introduction to Python that goes beyond the basics of Python syntax and provides an opportunity to apply Python to a variety of intermediate-level problems.

Python

Syllabus

Run a Small Program

Manipulate Various Built-in Python Objects

Review Basic File I/O

Review Simple Functions Exception Handling

Define a Simple Object

Defining and Importing Python Modules

Different Ways of Representing Records

Various Data Analysis Problems

Iterate Like a Pro

Make a New Primitive Type

Make a Custom Container

Exploring Python's First-Class Objects Memory Model

Define a Simple Class

Attribute Access and Bound Methods

Class Variables and Class Methods

Private Attributes and Properties

Practical Use of Inheritance

Redefining Special Methods

Type Checking and Interfaces

Mixin Classes and Cooperative Inheritance

How Objects Are Represented

Behavior of Inheritance

Learn About Descriptors

Customizing Attribute Access

Definitional Aspects of Functions

Returning Values From Functions

Python's Higher Functions

Learn More About Closures

Exception Handling and Logging

Python Unittest Module

Function Argument Passing Conventions

Scoping Rules and Tricks

Inspect the Internals of Functions

Create Code with Exec

Define a Proper Callable Object

Define a Simple Decorator Functions

Decorator Chaining and Parameterized Decorators

Learn About Class Decorators

Low-Level of Class Creation

Create Your First Metaclass

Metaclasses in Action

Customize Iteration Using Generators

Utilize Generators For Stocksim Pipelines

Coroutine-Powered Data Processing

Yield Statement Management in Python

Learn About Managed Generators

Learn About Delegating Generators

A Review of Module Basics

Create a Python Package

Controlling Symbols and Combining Submodules

Circular and Dynamic Module Imports

Introduction

In this course, you will learn how to apply Python to a variety of intermediate-level problems, going beyond the basics of Python syntax. You will explore various Python features and techniques, including built-in objects, file I/O, exception handling, object-oriented programming, functional programming, and more.

🎯 Tasks

In this course, you will learn:

  • How to manipulate various built-in Python objects
  • How to handle exceptions and perform file I/O
  • How to define simple objects and modules
  • How to represent and analyze data in different ways
  • How to iterate efficiently and create custom container types
  • How to work with first-class objects, classes, and inheritance
  • How to customize attribute access and redefine special methods
  • How to use higher-order functions, closures, and descriptors
  • How to handle exceptions and logging with the Python unittest module

🏆 Achievements

After completing this course, you will be able to:

  • Apply Python to solve a range of intermediate-level problems
  • Demonstrate proficiency in using Python's advanced features and techniques
  • Develop custom data structures and classes to meet specific requirements
  • Leverage functional programming concepts to write more efficient code
  • Implement robust exception handling and logging in your Python applications

License

This course is designed by David Beazley, released under a Creative Commons license. LabEx revised the course to be more suitable for hands-on practice, and added some new labs to help you understand the concepts better.

Teacher

labby
Labby
Labby is the LabEx teacher.

Recommended For You

no data