Functional Programming With Python
Learning Path ⋅ Skills: Python, Functional Programming, Lambda Functions, Built-in Functions, Map, Filter, Reduce, Scope, Closures, Inner Functions, Decorators, Recursion
In this learning path, you’ll explore functional programming techniques in Python. Starting with lambda functions and built-in tools like map(), filter(), and reduce(), you’ll then learn about scope, closures, inner functions, and decorators. The path wraps up with recursion and recursive thinking.
Functional Programming With Python
Learning Path ⋅ 13 Resources
Introduction to Functional Programming
Get an overview of functional programming in Python and learn when and how to apply functional techniques in your code.
Course
Using Functional Programming in Python
Boost your Python skills with a quick dive into functional programming: what it is, how Python supports it, and why it matters.
Interactive Quiz
Functional Programming in Python: When and How to Use It
Lambda Functions and Built-ins
Learn about lambda functions and Python’s key built-in functions, including any() and all().
Course
Using 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.
Interactive Quiz
Python Lambda Functions
Tutorial
Python's Built-in Functions: A Complete Exploration
Learn the basics of working with Python's numerous built-in functions. You'll explore how to use these predefined functions to perform common tasks and operations, such as mathematical calculations, data type conversions, and string manipulations.
Interactive Quiz
Python's Built-in Functions: A Complete Exploration
Course
Python any(): Powered Up Boolean Function
If you've ever wondered how to simplify complex conditionals by determining if at least one in a series of conditions is true, then look no further. This video course will teach you all about how to use any() in Python to do just that.
Tutorial
Python's all(): Check Your Iterables for Truthiness
Learn how to use Python's all() function to check if all the items in an iterable are truthy. You'll also code various examples that showcase a few interesting use cases of all() and highlight how you can use this function in Python.
Functional Tools: map, filter, and reduce
Use Python’s functional tools to process iterables. You’ll learn to transform, filter, and reduce data without explicit loops.
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.
Scope, Closures, and Decorators
Understand how Python resolves names using the LEGB rule, then learn about inner functions, closures, and decorators.
Course
The LEGB Rule & Understanding Python Scope
In this step-by-step video course, you'll learn what scopes are, how they work, and how to use them effectively to avoid name collisions in your code.
Course
Python Inner Functions
Learn what inner functions are in Python, how to define them, and what their main use cases are.
Interactive Quiz
Python Inner Functions: What Are They Good For?
Course
Python Decorators 101
In this course on Python decorators, you'll learn what they are and how to create and use them. Decorators provide a simple syntax for calling higher-order functions in Python. By definition, a decorator is a function that takes another function and extends the behavior of the latter function without explicitly modifying it.
Interactive Quiz
Primer on Python Decorators
Recursion
Learn recursive techniques in Python, from the fundamentals of recursion to applying recursive thinking to solve problems.
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.
Interactive Quiz
Recursion in Python: An Introduction
Course
Thinking Recursively With Python
Learn how to work with recursion in your Python programs by mastering concepts such as recursive functions and recursive data structures.
Congratulations on completing this learning path! You’ve learned functional programming techniques in Python, from lambda functions and functional tools to closures, decorators, and recursion.
Continue your intermediate Python journey with the next learning path:
Learning Path
Generators and Generator Expressions
4 Resources ⋅ Skills: Python, Iterators, Iterables, Itertools, Asynchronous Iterations, Generators, Yield
You might also be interested in these related learning paths:
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!
