Welcome to Week 2: 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: Dive deeper in Python
Date and Time: 05.12. 2024, 14:00-15:45
Duration: 1 hour 30 minutes, 15 minutes break
Content:
- Functions:
- Defining and calling functions.
- Parameters and arguments.
- Default and keyword arguments
- Lambda (anonymous) functions.
- Modules:
- Importing standard libraries.
- Creating and using custom modules.
- File Input/Output (I/O):
- Opening and closing files using with open().
- Reading from files: read(), readline(), readlines().
- Writing to files: write(), writelines().
- Handling different file types (text files, CSV files).
- Error handling during file operations.
Session 5: Master Python Basics
Date and Time: 06.12.2024, 14:00-15:45
Duration: 1 hour 30 minutes, 15 minutes break
Content:
- 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.
Materials
- Slides: https://docs.google.com/presentation/d/1H85DByHvxrwnUC3Xa-zF2y2gquoyG4hH/edit?usp=sharing&ouid=116220617472791343301&rtpof=true&sd=true
- Notebook: https://drive.google.com/file/d/1bQEz0DigquTEuByV5PLkOrGsJN4EHyIC/view?usp=sharing
- Solution: https://colab.research.google.com/drive/1Jv-mY5z4AbKcVenDGK68mVLzvipsezwW?usp=sharing
- Feedback form: https://forms.gle/naxnu9mkRxqFWouy7
Requirements
- Your own laptop
- Internet connection
- Google account
- Google Colab installed in Google Drive