Functional Programming in Python 3
This course will show you how to use functional programming (FP) in Python. You’ll learn what FP is, why it is an attractive alternative to other paradigms, how to write Pythonic functional code, and how to use FP in a business setting.
What you'll learn
Perhaps you are a seasoned Python programmer and have heard all the fuss about functional programming. Or maybe you're coming to Python from a functional language like Haskell, Scala, or F#, and you're wondering how to work in a language that seems to lack the things you take for granted in your favorite language. In this course, Functional Programming in Python 3, you’ll learn to apply the principles of functional programming (FP) using Python. First, you’ll explore the concepts of FP, including first class functions, pure functions, immutability and lazy evaluation, and FP’s relationship to other programming paradigms. Next, you’ll discover how to implement those concepts in Python, for example, by writing stateless functions and using immutable variables.. Finally, you’ll learn how to apply FP in a typical order processing system. When you’re finished with this course, you’ll have the skills and knowledge of functional programming in Python needed to develop and support FP Python in business settings.
Table of contents
- Introducing Recursion 1m
- Reviewing the Foundations of Recursion 2m
- Demo 1 - Adding Numbers Using Recursion 1m
- Learning About Tail Recursion 1m
- Demo 2 - Adding Numbers Using Tail Recursion 2m
- Hitting the Trampoline 1m
- Demo 3 - Fibonacci on the Trampoline 2m
- Demo 4 - Finding Employees Using Trampoling 2m
- Summarizing This Module 1m