► Leverage Python’s advanced features to improve the quality of your code
In this Python tutorial you’ll learn the basics of functional programming in Python and how to use the “filter()” function to transform data structures.
We’ll take the example data set represented with an immutable data structure from the previous video in this series, and then we’ll create a “filtered down” version of the same data using Python’s built-in filter function. “filter()” is one of the functional programming primitives or building blocks available in Python and it’s useful in a number of contexts.
Later in the video you’ll also see how the filter function relates to list comprehensions and generator expressions in Python and how using these is (arguably) more Pythonic that relying on plain “filter()” calls.
This is part of a series of Python functional programming tutorials that I’m recording so stay tuned for the next instalment.
Also, be sure to check out these associated articles if you want to dive deeper into the subject:
* Immutable Data Structures in Python:
* List comprehensions:
FREE COURSE – “5 Thoughts on Mastering Python”
SUBSCRIBE TO THIS CHANNEL:
* * *
► Python Developer MUGS, T-SHIRTS & MORE:
► PythonistaCafe – A peer-to-peer learning community for Python developers:
FREE Python Coding Tutorials & News:
» Python Tutorials:
» Python News on Twitter:
» Weekly Tips for Pythonistas:
» Subscribe to this channel:
Xem thêm bài viết khác: https://benjaminjcohen.com/cong-nghe/