Functional Programming With Python

Learning PathSkills: Functional Programming Fundamentals

Functional Programming in Python: When and How to Use It

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 ⋅ 6 Resources

Functional Programming in Python: When and How to Use It

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.

Core Python Tutorials Artwork

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().

How to Use Python lambda Functions

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.

Python Inner Functions

Tutorial

Python Inner Functions: What Are They Good For?

Learn what inner functions are in Python, how to define them, and what their main use cases are.

Python's map(): Processing Iterables Without a Loop

Tutorial

Python's map(): Processing Iterables Without a Loop

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.

Python's reduce(): From Functional to Pythonic Style

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.

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!

« Browse All Learning Paths