Skip to main content

Section outline

  • Session 1: Introduction to Python OOP (3 Hours)

    Understanding Python Native Types

    • What are classes and objects?
    • Methods and special methods (__init__, __str__)
    • Built-in class attributes (__dict__, __name__)

    • Hands-on Lab:
    • Building a trading application using the class and object design model.

     

    Session 2: Inheritance & Exception Handling (4 Hours)

    Python Inheritance & Types

    • Using the super() function
    • Code reuse and extending functionality
      Handling Exceptions & Custom Errors
    • Try-except-finally blocks
    • Raising custom exceptions
      Decorators & Python Closures
    • Function decorators (@staticmethod, @classmethod)
    • Advanced closure functions

    • Hands-on Lab:
    • Implementing class inheritance & handling exceptions.
    • Using decorators for reusable components.
  • Session 3: Functional Programming in Python (3 Hours)

    Working with Iterators & Generators

    • iter(), next(), and custom iterators
    • Using yield for memory-efficient generators
      Map, Filter, and List Comprehensions
    • Applying map() and filter() to transform data
    • Writing Pythonic list comprehensions

    • Hands-on Lab:
    • Creating an OS directory walker using generators.
    • Filtering and mapping operations on existing datasets

    Session 4: Case Studies & Practical Applications (4 Hours)

    Regular Expressions (RegEx) & Text Processing

    • Searching, replacing, and formatting strings
    • Extracting useful information from logs
      Logging & JSON Handling
    • Configuring logging for debugging
    • Writing structured JSON files
      Database Connectivity & CRUD Operations
    • Connecting Python to SQLite3 databases
    • Writing and executing SQL queries using Python

    • Hands-on Lab:
    • Extracting patterns from logs & CSV files using RegEx.
    • Writing complex Python structures to JSON format.
    • Performing CRUD operations in Python using SQLite3.