Functional Programming With Python
Learning Path ⋅ Skills: Functional Programming Fundamentals
Functional programming, or FP for short, is a programming paradigm in which the primary method of computation is the evaluation of functions.
Functional programming typically plays a fairly small role in Python code, but it’s good to be familiar with it. At the very least, you’ll probably encounter it from time to time when you’re reading code written by others. You may also find situations where it’s helpful to use Python’s functional programming capabilities in your own code to make it more concise.
Functional Programming With Python
Learning Path ⋅ 9 Resources
Tutorial
Functional Programming in Python: When and How to Use It
Learn about functional programming in Python. You'll see what functional programming is, how it's supported in Python, and how you can use it in your Python code.
Course
Functional Programming in Python
Learn how to approach functional programming in Python. You'll cover what functional programming is, how you can use immutable data structures to represent your data, as well as how to use filter(), map(), and reduce().
Course
How to Use Python Lambda Functions
Learn about Python lambda functions. You'll see how they compare with regular functions and how you can use them in accordance with best practices.
Course
Python Inner Functions
Learn what inner functions are in Python, how to define them, and what their main use cases are.
Course
Python's map() Function: Transforming Iterables
Learn how Python's map() works and how to use it effectively in your programs. You'll also learn how to use list comprehension and generator expressions to replace map() in a Pythonic and efficient way.
Course
Filtering Iterables With Python
Learn how Python's filter() works and how to use it effectively in your programs. You'll also learn how to use list comprehension and generator expressions to replace filter() and make your code more Pythonic.
Tutorial
Python's reduce(): From Functional to Pythonic Style
Learn how Python's reduce() works and how to use it effectively in your programs. You'll also learn some more modern, efficient, and Pythonic ways to gently replace reduce() in your programs.
Course
Recursion in Python
A recursive function is one that calls itself. In this video course, you'll see what recursion is, how it works in Python, and under what circumstances you should use it.
Course
Thinking Recursively in Python
Learn how to work with recursion in your Python programs by mastering concepts such as recursive functions and recursive data structures.
Got feedback on this learning path?
Looking for real-time conversation? Visit the Real Python Community Chat or join the next “Office Hours” Live Q&A Session. Happy Pythoning!