Home>Courses>Learn Functional Programming in Python

Learn Functional Programming in Python

Gain insights into functional programming in Python, learn about functions as objects, recursion, closures, and generators, and discover how to confidently apply these concepts to your projects.

Beginner

95 Lessons

5h

Certificate of Completion

Gain insights into functional programming in Python, learn about functions as objects, recursion, closures, and generators, and discover how to confidently apply these concepts to your projects.
AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

3 Assessments
234 Playgrounds
12 Quizzes
Course Overview
What You'll Learn
Course Content
Recommendations

Course Overview

The functional programming paradigm can be a powerful tool, especially as it can be integrated seamlessly with procedural and object-oriented code in Python. In this course, you’ll learn what functional programming is, how it’s used, and the features of Python that support it. To start, you’ll learn how functions act as objects, the role of mutability, and how to perform recursion. In the latter half of the course, you’ll focus on closures, iterables & iterators, generators, and more. Throughout the cou...Show More
The functional programming paradigm can be a powerful tool, especially as it can be integrated seamlessly with procedural and ob...Show More

TAKEAWAY SKILLS

Recursion

Functional Programming

Mutability

Closures

Iterators

Transforming Iterables

Reducing Iterables

Comprehensions

Generators

Partial Application

Currying

Functors

Monads

What You'll Learn

Learn to implement functional programming in Python.
Understand the pros and cons of functional programming in Python.
Master the ways to obtain function objects.
Grasp the concept of mutability and recursion in Python.
Acquire skill of using closures as function factories.
Learn to differentiate between iterators and iterables.
Become competent in creating, reducing, and transforming iterables.
Master list comprehensions and generator comprehensions.
Implement function composition and partial application.
Get familiar with functors, applicatives, and monads.
Learn to implement functional programming in Python.

Show more

Course Content

4.

Recursion

8 Lessons

Break down complex ideas in recursion, factorials, limits, memoization, and list flattening.

8.

Transforming Iterables

9 Lessons

Build on Python functions like enumerate, zip, filter, and map for iterable transformations.

9.

Reducing Iterables

7 Lessons

Step through Python's reducing functions to transform iterables into single outcomes efficiently.

11.

Comprehensions

5 Lessons

Get started with creating lists using comprehensions, conditions, and nested structures in Python.

14.

Functors and Monads

6 Lessons

Deepen your knowledge of functors, applicative functors, and monads in functional programming.

16.

Useful Libraries

2 Lessons

Simplify complex topics in Python with Itertools, Functools, PyMonad, and Oslash libraries.

17.

Conclusion

1 Lessons

Build on your functional programming skills with key concepts and continued exploration.

Course Author

Trusted by 2.5 million developers working at companies

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor

Free Resources

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath