Python Programming 2 (PYP2)


Contact Us

We would love to hear from you. Please complete this form to pre-book or request further information about our delivery options.


I'd like to receive emails with the latest updates and promotions from Insoft.

Data Protection & Privacy

I hereby allow Insoft Ltd. to contact me on this topic. Further, I authorise Insoft Ltd. processing, using collecting and storing my personal data for the purpose of these activities. All your data will be protected and secured as outlined in our privacy policy.

Upcoming Dates

  Feb 15 - Feb 17, 2022
09:00 - 17:00

  • Python Programming 2 (PYP2)
    3 days  (Instructor Led Online)  |  Software Development

    Course Details

    The Python Programming 2 course comprises sessions dealing with advanced object orientation, iterators and generators, comprehensions, decorators, multithreading, functional programming, web services, and unit testing.

    The delegate will learn how to exploit advanced features of the Python language to build complex and efficient applications.

    Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.


    This course aims to provide the delegate with the knowledge to be able to interpret, write, and troubleshoot complex Python applications exploiting inheritance and polymorphism, mixins, composition and aggregation, iterators, generators, decorators, comprehension, concurrency, functional programming, and RESTful web services.

    The delegate will learn and acquire skills as follows:

    • Encapsulating classes
    • Exploiting polymorphism using inheritance and mixins
    • Associating objects via composition and aggregation
    • Working with static members
    • Using iterators as an alternative to for
    • Constructing custom iterators
    • Constructing functions that yield generators
    • Manipulating lists, sets, and dictionaries using comprehension
    • Exploiting aspect oriented programming using decorators
    • Writing multithreaded code
    • Sharing data between threads
    • Processing collections using lambdas
    • Building RESTful clients
    • Building RESTful APIs
    • Testing units of code


    Day 1

    Course Introduction

    • Administration and Course Materials
    • Course Structure and Agenda
    • Delegate and Trainer Introductions


    • The self Keyword
    • Constructors and Destructors
    • Encapsulation
    • Inheritance
    • Polymorphism
    • Abstract Classes
    • Multiple Inheritance and Mixins
    • Composition and Aggregation
    • Static Members


    • Iterables
    • Iterators
    • Custom Iterators
    • Generators
    • Yield vs. Return


    • List Comprehension
    • Set Comprehension
    • The zip Function
    • Dictionary Comprehension

    Day 2


    • Functional Programming
    • Lambdas
    • Immutability
    • Mapping
    • Filtering
    • Reducing

    Session 5: DECORATORS

    • Decorators
    • Decorator Functions
    • Decorator Annotations
    • Decorator Use Cases
    • Labs


    • Threads
    • Multithreading
    • Thread Construction
    • Thread Execution
    • Thread Sleep
    • Joins
    • Data Sharing
    • Synchronisation
    • Multithreading vs. Multiprocessing

    Day 3

    Session 7: WEB SERVICES

    • RESTful Web Services
    • JSON Data
    • CRUD and HTTP
    • RESTful Clients
    • RESTful APIs

    Session 8: UNIT TESTING

    • Unit Testing Terminology
    • Test Classes
    • Test Fixtures
    • Test Cases
    • Assertions
    • Test Runners

    Target Audience

    The Python Programming 2 course is designed for existing Python developers who have a good grounding in the basics and want to exploit some of the advanced features of the language.

    For the delegate for whom Python is their first programming language, we recommend taking the Python Programming 1 (PYP1) course first, then taking some time to practice the skills gained, before returning to take the Python Programming 2 course.


    Students should be able to build Python applications that exploit all fundamental elements of the language including variables and expressions, conditions and loops, functions, objects, and lists.

    This knowledge can be gained by attendance on the pre-requisite Python Programming 1 (PYP1) course.