From the course: Functional Programming with Python

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Python: The functional parts

Python: The functional parts - Python Tutorial

From the course: Functional Programming with Python

Start my 1-month free trial

Python: The functional parts

- [Instructor] One of the nice things about learning functional programming with Python is that many of the concepts we've learned so far have a great deal of native support in the language itself. Even though Python isn't really a functional first language like Haskell or Lisp, in general, Python makes it relatively easy to apply many of the core functional programming concepts than if we were working in languages such as C++. One of the areas where this fact is especially true is in working with things like lists. Python provides a host of built-in functions and functionality that makes working with this sort of construct in a functional way incredibly easy. Functions such as map or filter, which are a standard part of Python 3, as well as reduce which in Python 3 has been moved to the functools library make the formally complicated task of transforming sequence data almost trivial once you know how to use them. And…

Contents