Python has a number of packages that are useful for functional style programming, some of these are illustrated here.
sort.py: illustrates sorting a list of nested tuples using a lambda function, andoperator'sitemgetterhigher order function.reduce.py: illustratesfunctools'sreducefunction by computing the factorial function.