Functional Programming in Python: The "filter()" Function

Publicado el: 06 septiembre 2017
en el canal de: Real Python
36,464
764

https://dbader.org/python-tricks ► 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:    • Functional Programming in Python: Imm...  
* https://dbader.org/blog/python-lambda...
* List comprehensions: https://dbader.org/blog/list-dict-set...

FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery

SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube

* * *

► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com

► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com

FREE Python Coding Tutorials & News:
» Python Tutorials: https://dbader.org
» Python News on Twitter:   / @dbader_org  
» Weekly Tips for Pythonistas: https://dbader.org/newsletter
» Subscribe to this channel: https://dbader.org/youtube


En esta página del sitio puede ver el video en línea Functional Programming in Python: The "filter()" Function de Duración hora minuto segunda en buena calidad , que subió el usuario Real Python 06 septiembre 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 36,464 veces y le gustó 764 a los espectadores. Disfruta viendo!