Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Designing Higher-Order Functions in Python

via CodeSignal

Overview

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.

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

Reviews

Start your review of Designing Higher-Order Functions in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.