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 Tutorial
From the course: Functional Programming with Python
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Python: The functional parts1m 5s
-
(Locked)
Mapping4m 46s
-
(Locked)
Filtering3m 20s
-
(Locked)
Lambdas in Python4m 25s
-
(Locked)
List comprehensions in Python3m 35s
-
(Locked)
Reducing4m 53s
-
(Locked)
Combining list functions7m 15s
-
(Locked)
Challenge: Converting to list comprehensions52s
-
(Locked)
Solution: Converting to list comprehensions3m 30s
-
(Locked)
-
-