Leveling Up Your Python Powers!
This week, we're diving deeper into Python magic—where you’ll learn to wield powerful tools like modules, tame wild lambda functions, build your own classes, and even handle exceptions like a pro! Think of it as your next step toward becoming a Python wizard, ready to tackle any code that comes your way. Let the journey start...
Session 4: Object Oriented Programming and Exception Handling
Date and Time: 04.12.2025, 16:30-18:15
Duration: 1 hour 30 minutes, 15 minutes break
Content:
- Exercise 1 Review
- Object oriented vs functional programming
- Installing custom packages
- Object-Oriented Programming (OOP):
- Understanding classes and objects.
- Defining classes, attributes, and methods.
- Creating instances of classes.
- Introduction to inheritance (if time allows).
- Exception Handling:
- Understanding exceptions and errors.
- Using try, except, finally blocks.
- Raising exceptions with raise.
- Best practices for writing robust code.
Requirements
- Your own laptop
- Internet connection
- Installed VSCode with Python extension
- my_packages from session 3
Lecture Notes
Exercises
