Week 3#

Part 1. Functions and Lambda functions#

  • 1.1 Defining Regular Functions

    • 1.1.1 Function Syntax

    • 1.1.2 Function Arguments

      • Positional Arguments

      • Keyword Arguments

      • Default Arguments

      • Variable-length Arguments

    • 1.1.3 Functions Returning a Value

    • 1.1.4 Functions Returning Multiple Values

    • 1.1.5 Recursive Functions

    • 1.1.6 Implicit Arguments

    • 1.1.7 Keyword Arguments, *args, and **kwargs

    • 1.1.8 Global vs Local Variables

    • 1.2 Lambda Functions

      • 1.2.1 Some useful built-in functions: Map(), Filter() and Sorted()

  • Exercises

Part 2. Classes and Objects in Python#

  • 2.1 Object-Oriented Programming (OOP) Concepts

    • 2.1.1 Classes and Instances

    • 2.1.2 Defining a Class

    • 2.1.3 Creating Instances of a Class

    • 2.1.4 Attributes and Methods

    • 2.1.5 The init() Method

    • 2.1.6 Instance Variables and Class Variables

    • 2.1.7 The self Parameter

    • 2.1.8 The str() and repr() Methods

  • 2.2 Advanced OOP Concepts

    • 2.2.1 Inheritance

    • 2.2.2 Operator Overriding

    • 2.2.3 Some other useful methods: The getitem and setitem Methods

  • Exercises