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 3: Functions, Modules and File handling
Date and Time: 02.12.2025, 16:00-18:15
Duration: 1 hour 30 minutes, 15 minutes break
Content:
- Theory:
- What are functions.
- What are modules.
- How to structure your projects.
- 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.
Requirements
- Your own laptop
- Internet connection
- Installed VSCode with Python Extension
Course Material:
Lecture Notes
Exercises
