 The design of Python offers some support for functional programming in the Lisp tradition . The language has map ( ) , reduce ( ) and filter ( ) functions ; list comprehensions , dictionaries , and sets ; and generator expressions . The standard library has two modules ( itertools and functools ) that implement functional tools borrowed from Haskell and Standard ML . 
