# Python Advanced

## About

- Level: Advanced
- Lectures: 40 hours
- Self-study: 20 hours
- Exercises: 137
- Lines of code to write: 666
- Format: e-learning + weekly online meeting with the instructor
- Language: English or Polish

## Description

Explore the language features behind Python libraries and larger applications. Work with protocols, descriptors, decorators, generators, metaprogramming, and asynchronous programming. Practical exercises show how these features behave and when they offer a useful alternative to a simpler design.

## Advantages

Improve your judgment when designing interfaces, extending existing code, or coordinating asynchronous tasks. You will learn to explain advanced Python behavior and make informed choices about complexity and performance.

## Target Audience

- Experienced Python developers building libraries or larger applications.
- Engineers working with async I/O and extensible interfaces.
- Technical leads reviewing architecture and maintainability.

## Format

Learn through short videos and worked examples, then apply each topic in coding exercises. Automated checks help you test your solutions, and a progress spreadsheet helps you see what to work on next.

Weekly online meetings give you time for questions, code reviews, and working through difficult exercises with the instructor. Downloadable code, exercise templates, and reference notes support your independent practice.

Our trainers prepare the teaching materials from their professional experience. The materials have been developed since 2015, with more than 28,000 automated tests checking the code examples. Training is available in English or Polish.

## Course Outline

1. Syntax:

   - Exceptions (nested, custom)
   - Assignment Expressions
   - t-strings
2. Advanced Typing:

   - TypedDict and NamedTuple
   - LiteralString
   - Iterator and Generator
   - Override, Overload, Final
   - Type aliases, TypeVar
   - Variance: covariance, contravariance, and invariance
   - Generic types
   - Type narrowing: TypeGuard, TypeIs
   - Annotated
   - Static type checking with mypy
3. Object Oriented Programming:

   - SOLID principles
   - Access modifiers
   - Object mutability
   - Equality and identity
   - Object formatting
   - Slots
   - Property
   - Methods and Self
   - Staticmethods
   - Classmethod
4. Inheritance:

   - Inheritance patterns
   - Mixins
   - Composition and aggregation
   - Method and attribute overriding
   - Super
   - Method Resolution Order (MRO)
5. Polymorphism:

   - Abstract Base Classes (ABC)
   - Protocols and structural polymorphism
   - Abstract collections
6. Encapsulation:

   - Concept of encapsulation and accessors
   - Property: setter, getter, deleter
   - Reflection: setattr, getattr, hasattr, delattr
   - Descriptors: set, get, delete, set\_name
7. Metaprogramming:

   - init\_subclass
   - init vs new
   - Type
   - Namespace
   - Class-factory
   - Metaclass
8. Operator Overloading:

   - Left, in-place, right
   - Arithmetic, comparison, binary
   - Accessors: setitem, getitem, delitem, missing, call
   - Overloading built-in functions
9. Serialization:

   - Serialization algorithms and formats
   - Deserialization algorithms and techniques
   - Data normalization and type conversion
10. Functional Paradigm:

    - Lambda expressions
    - Pure functions
    - Memoization, cache, lru\_cache
    - Recursion
    - Immutable data structures and referential transparency
    - Function namespaces and attributes, callable
    - Function scopes
    - Higher-order functions, closures
    - Map, Filter, Reduce
    - Patterns: pipe, callback, closure, maybe, some, map-reduce
    - Functools builtin module
11. Decorators:

    - Types of decorators and wrapper types
    - Function, method, and class decorators
    - Nested decorators
    - Decorators with arguments
12. Generators:

    - Generator expressions
    - Generator functions
    - Running, lazy processing, and introspection
    - yield and yield from keywords
    - Sending values to generators
13. Asynchronous Programming:

    - Concurrency models
    - Introduction to asynchronous programming
    - Concepts: coroutines, awaitables, event loop
    - async/await keywords
    - Introduction to the asyncio library
    - Run, gather, wait\_for
    - Future, Task, TaskGroup
    - Async: iterator, generator, context manager, comprehension
    - Asynchronous testing
    - Asynchronous execution of tasks in the operating system
14. The Future of Python

    - Planned changes in future Python versions
    - Speculation
    - Where to look for further information
15. (Optional) AI-driven TDD and CI/CD

    - Types of tests
    - Testing frameworks
    - Linters, static analyzers, and supporting tools
    - Developer tool ecosystem
    - Building a CI/CD pipeline
    - Test execution strategy
    - Practical demonstration of TDD with AI support

## Our Experience

AATC trainers have taught software engineering since 2015, delivering more than 11,000 hours of training to over 32,000 students worldwide. The exercises draw on that teaching experience and professional projects.

## Prerequisites

- Intermediate knowledge of Python programming
- Familiarity with using an IDE (e.g., PyCharm, VSCode)
- Familiarity with using version control systems (e.g., Git)

## Setup

- Newest version of Python
- IDE of your choice (e.g., PyCharm, VSCode)
- Git installed and configured
- GitHub account
- Web browser (e.g., Chrome, Firefox, Safari, etc.)

## Related Courses

- [Python Basics](<https://aatc.pl/software/python/basics/index.md>)
- [Python Intermediate](<https://aatc.pl/software/python/intermediate/index.md>)
- [Python Advanced](<https://aatc.pl/software/python/advanced/index.md>)
- [Design Patterns](<https://aatc.pl/software/engineering/design-patterns/index.md>)
- [Profiling](<https://aatc.pl/software/engineering/profiling/index.md>)
- [Refactoring](<https://aatc.pl/software/engineering/refactoring/index.md>)
- [Testing](<https://aatc.pl/software/engineering/testing/index.md>)
- [DevOps](<https://aatc.pl/software/engineering/devops/index.md>)
- [Regular Expressions](<https://aatc.pl/software/engineering/regex/index.md>)
- [All Courses](<https://aatc.pl/software/index.md>)

## Date

This course is scheduled on demand. Contact us with your preferred dates and group size so we can check availability and arrange a suitable session.

## Contact

Email [info@aatc.pl](<mailto:info@aatc.pl>) for help with program details, preparation, or booking.

## Apply

To apply, email [info@aatc.pl](<mailto:info@aatc.pl>) with your name, the program you are interested in, and your preferred dates.
