Python Arena

Module 49

Functions as arguments

A function is a value you can hand to another function. Sorting with a key function, lambda expressions, sorting and picking your own objects with sorted, min and max, and writing functions of your own that take a function as an argument.

Steps

  1. Sorting with a key function
  2. Lambda expressions
  3. Sorting your own objects
  4. Functions that take functions