This course introduces you to advanced aspects of handling functions in Python. You'll learn about storing functions as variables, and dynamic function operations, such as passing and returning functions, and partial application.
Overview
Syllabus
- Lesson 1: Storing Functions in Variables
- Storing Functions in Variables
- Using Lambda Expressions Instead of Function Pointers
- Replace Lambda with Standard Function
- Storing and Using Functions with Variables and Lambdas
- Implement a Callable Multiplier Class
- Lesson 2: Higher-Order Functions and Function Arguments
- Modifying filter_list to Return the Filtered List
- Quicksort with Higher-Order Functions
- Modify List Elements Using a Higher-Order Function
- Implementing a Custom Reduce Function
- Transform List Elements with a Function
- Lesson 3: Implementing Higher-Order Functions that Return Other Functions
- Multiplier Function Factory
- Exponentiator Function in Python Using Lambda Expressions
- Greeting Generator Function
- Generate Custom Divider Functions
- Lesson 4: Using Partial Functions and Lambda Expressions
- Using functools.partial to Create a Squaring Function
- Converting Partial Function Calls to Lambda Functions
- Creating Custom Greeting Functions Using functools.partial and Lambda
- Using functools.partial and Lambda Expressions for Argument Binding