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

  • Notebooks: present in the attachments
  • Exercises: present in the attachments
  • Solutions: present in the attachments

Requirements

  • Your own laptop
  • Internet connection

  • Keine Stichwörter