René's URL Explorer Experiment


Title: Python's filter(): Extract Values From Iterables – Real Python

Open Graph Title: Python's filter(): Extract Values From Iterables – Real Python

Description: In this step-by-step tutorial, you'll 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.

Open Graph Description: In this step-by-step tutorial, you'll 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.

Mail addresses
?subject=Python article for you&body=Python's filter(): Extract Values From Iterables on Real Python https://realpython.com/python-filter-function/

Opengraph URL: https://realpython.com/python-filter-function/

X: @realpython

direct link

Domain: realpython.com


Hey, it has json ld scripts:
{
  "@context": "http://schema.org",
  "@type": "Article",
  "headline": "Python's filter(): Extract Values From Iterables",
  "image": {
    "@type": "ImageObject",
    "url": "https://files.realpython.com/media/How-to-Use-Pythons-filter__Watermarked.4234700cc1c3.jpg",
    "width": 1920,
    "height": 1080
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://realpython.com/python-filter-function/",
    "lastReviewed": "2023-07-31",
    "author": {
      "@type": "Person",
      "name": "Leodanis Pozo Ramos",
      "image": "https://realpython.com/cdn-cgi/image/width=862,height=862,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Perfil_final1.9f896bc212f6.jpg",
      "url": "https://realpython.com/team/lpozoramos/",
      "affiliation": {
        "@type": "Organization",
        "@id": "https://realpython.com/#organization",
        "name": "Real Python",
        "url": "https://realpython.com",
        "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
      }
    },
    "reviewedBy": [
      {
        "@type": "Person",
        "name": "Aldren Santos",
        "image": "https://realpython.com/cdn-cgi/image/width=500,height=500,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Aldren_Santos_Real_Python.6b0861d8b841.png",
        "url": "https://realpython.com/team/asantos/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Bartosz Zaczy\u0144ski",
        "image": "https://realpython.com/cdn-cgi/image/width=1694,height=1694,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/coders_lab_2109368.259b1599fbee.jpg",
        "url": "https://realpython.com/team/bzaczynski/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "David Amos",
        "image": "https://realpython.com/cdn-cgi/image/width=400,height=400,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/me-small.f5f49f1c48e1.jpg",
        "url": "https://realpython.com/team/damos/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Joanna Jablonski",
        "image": "https://realpython.com/cdn-cgi/image/width=800,height=800,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/jjablonksi-avatar.e37c4f83308e.jpg",
        "url": "https://realpython.com/team/jjablonski/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Jacob Schmitt",
        "image": "https://realpython.com/cdn-cgi/image/width=400,height=400,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/profile-small_js.2f4d0d8da1ca.jpg",
        "url": "https://realpython.com/team/jschmitt/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      }
    ]
  },
  "datePublished": "2021-06-09T14:00:00+00:00",
  "dateModified": "2023-07-31T20:52:49.411243+00:00",
  "publisher": {
    "@type": "Organization",
    "@id": "https://realpython.com/#organization",
    "name": "Real Python",
    "url": "https://realpython.com",
    "logo": {
      "@type": "ImageObject",
      "url": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png",
      "width": 512,
      "height": 512
    },
    "description": "Real Python is a leading provider of online Python education and one of the largest language-specific online communities for software developers. It publishes high-quality learning resources, such as tutorials, books, and courses to an audience of millions of developers, data scientists, and machine learning engineers each month.",
    "slogan": "Become a Python Expert",
    "email": "info@realpython.com",
    "sameAs": [
      "https://github.com/realpython",
      "https://www.youtube.com/realpython",
      "https://twitter.com/realpython",
      "https://x.com/realpython",
      "https://www.linkedin.com/company/realpython-com/",
      "https://www.facebook.com/learnrealpython",
      "https://www.instagram.com/realpython",
      "https://www.tiktok.com/@realpython.com"
    ]
  },
  "author": {
    "@type": "Person",
    "name": "Leodanis Pozo Ramos",
    "image": "https://realpython.com/cdn-cgi/image/width=862,height=862,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Perfil_final1.9f896bc212f6.jpg",
    "url": "https://realpython.com/team/lpozoramos/",
    "affiliation": {
      "@type": "Organization",
      "@id": "https://realpython.com/#organization",
      "name": "Real Python",
      "url": "https://realpython.com",
      "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
    }
  },
  "description": "In this step-by-step tutorial, you'll 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."
}

authorReal Python
twitter:cardsummary_large_image
twitter:imagehttps://files.realpython.com/media/How-to-Use-Pythons-filter__Watermarked.4234700cc1c3.jpg
og:imagehttps://files.realpython.com/media/How-to-Use-Pythons-filter__Watermarked.4234700cc1c3.jpg
twitter:creator@realpython
og:typearticle

Links:

https://realpython.com/
Start Herehttps://realpython.com/start-here/
Learn Python https://realpython.com/python-filter-function/
Python Tutorials →In-depth articles and video courseshttps://realpython.com/search?kind=article&kind=course&order=newest
Learning Paths →Guided study plans for accelerated learninghttps://realpython.com/learning-paths/
Quizzes & Exercises →Check your learning progresshttps://realpython.com/quizzes/
Browse Topics →Focus on a specific area or skill levelhttps://realpython.com/tutorials/all/
Community Chat →Learn with other Pythonistashttps://realpython.com/community/
Office Hours →Live Q&A calls with Python expertshttps://realpython.com/office-hours/
Podcast →Hear what’s new in the world of Pythonhttps://realpython.com/podcasts/rpp/
Books →Round out your knowledge and learn offlinehttps://realpython.com/products/books/
Reference →Concise definitions for common Python termshttps://realpython.com/ref/
Code Mentor →BetaPersonalized code assistance & learning toolshttps://realpython.com/mentor/
Unlock All Content →https://realpython.com/account/join/
More https://realpython.com/python-filter-function/
Learner Storieshttps://realpython.com/learner-stories/
Python Newsletterhttps://realpython.com/newsletter/
Python Job Boardhttps://www.pythonjobshq.com
Meet the Teamhttps://realpython.com/team/
Become a Tutorial Writerhttps://realpython.com/write-for-us/
Become a Video Instructorhttps://realpython.com/become-an-instructor/
Searchhttps://realpython.com/search
https://realpython.com/search
Joinhttps://realpython.com/account/join/
Sign‑Inhttps://realpython.com/account/login/?next=%2Fpython-filter-function%2F
Browse Topicshttps://realpython.com/tutorials/all/
Guided Learning Pathshttps://realpython.com/learning-paths/
Basicshttps://realpython.com/search?level=basics
Intermediatehttps://realpython.com/search?level=intermediate
Advancedhttps://realpython.com/search?level=advanced
aihttps://realpython.com/tutorials/ai/
algorithmshttps://realpython.com/tutorials/algorithms/
apihttps://realpython.com/tutorials/api/
best-practiceshttps://realpython.com/tutorials/best-practices/
careerhttps://realpython.com/tutorials/career/
communityhttps://realpython.com/tutorials/community/
databaseshttps://realpython.com/tutorials/databases/
data-sciencehttps://realpython.com/tutorials/data-science/
data-structureshttps://realpython.com/tutorials/data-structures/
data-vizhttps://realpython.com/tutorials/data-viz/
devopshttps://realpython.com/tutorials/devops/
djangohttps://realpython.com/tutorials/django/
dockerhttps://realpython.com/tutorials/docker/
editorshttps://realpython.com/tutorials/editors/
flaskhttps://realpython.com/tutorials/flask/
front-endhttps://realpython.com/tutorials/front-end/
gamedevhttps://realpython.com/tutorials/gamedev/
guihttps://realpython.com/tutorials/gui/
machine-learninghttps://realpython.com/tutorials/machine-learning/
newshttps://realpython.com/tutorials/news/
numpyhttps://realpython.com/tutorials/numpy/
projectshttps://realpython.com/tutorials/projects/
pythonhttps://realpython.com/tutorials/python/
stdlibhttps://realpython.com/tutorials/stdlib/
testinghttps://realpython.com/tutorials/testing/
toolshttps://realpython.com/tutorials/tools/
web-devhttps://realpython.com/tutorials/web-dev/
web-scrapinghttps://realpython.com/tutorials/web-scraping/
Table of Contentshttps://realpython.com/python-filter-function/#toc
Coding With Functional Style in Pythonhttps://realpython.com/python-filter-function/#coding-with-functional-style-in-python
Understanding the Filtering Problemhttps://realpython.com/python-filter-function/#understanding-the-filtering-problem
Getting Started With Python’s filter()https://realpython.com/python-filter-function/#getting-started-with-pythons-filter
Filtering Iterables With filter()https://realpython.com/python-filter-function/#filtering-iterables-with-filter
Extracting Even Numbershttps://realpython.com/python-filter-function/#extracting-even-numbers
Finding Prime Numbershttps://realpython.com/python-filter-function/#finding-prime-numbers
Removing Outliers in a Samplehttps://realpython.com/python-filter-function/#removing-outliers-in-a-sample
Validating Python Identifiershttps://realpython.com/python-filter-function/#validating-python-identifiers
Finding Palindrome Wordshttps://realpython.com/python-filter-function/#finding-palindrome-words
Combining filter() With Other Functional Toolshttps://realpython.com/python-filter-function/#combining-filter-with-other-functional-tools
The Square of Even Numbers: filter() and map()https://realpython.com/python-filter-function/#the-square-of-even-numbers-filter-and-map
The Sum of Even Numbers: filter() and reduce()https://realpython.com/python-filter-function/#the-sum-of-even-numbers-filter-and-reduce
Filtering Iterables With filterfalse()https://realpython.com/python-filter-function/#filtering-iterables-with-filterfalse
Extracting Odd Numbershttps://realpython.com/python-filter-function/#extracting-odd-numbers
Filtering Out NaN Valueshttps://realpython.com/python-filter-function/#filtering-out-nan-values
Coding With Pythonic Stylehttps://realpython.com/python-filter-function/#coding-with-pythonic-style
Replacing filter() With a List Comprehensionhttps://realpython.com/python-filter-function/#replacing-filter-with-a-list-comprehension
Replacing filter() With a Generator Expressionhttps://realpython.com/python-filter-function/#replacing-filter-with-a-generator-expression
Conclusionhttps://realpython.com/python-filter-function/#conclusion
https://realpython.com/feedback/survey/article/python-filter-function/liked/?from=article-sidebar
https://realpython.com/feedback/survey/article/python-filter-function/disliked/?from=article-sidebar
Filtering Iterables With Pythonhttps://realpython.com/courses/python-filter-function/
Leodanis Pozo Ramoshttps://realpython.com/python-filter-function/#author
https://realpython.com/python-filter-function/#reader-comments
intermediatehttps://realpython.com/tutorials/intermediate/
best-practiceshttps://realpython.com/tutorials/best-practices/
pythonhttps://realpython.com/tutorials/python/
Coding With Functional Style in Pythonhttps://realpython.com/python-filter-function/#coding-with-functional-style-in-python
Understanding the Filtering Problemhttps://realpython.com/python-filter-function/#understanding-the-filtering-problem
Getting Started With Python’s filter()https://realpython.com/python-filter-function/#getting-started-with-pythons-filter
Filtering Iterables With filter()https://realpython.com/python-filter-function/#filtering-iterables-with-filter
Extracting Even Numbershttps://realpython.com/python-filter-function/#extracting-even-numbers
Finding Prime Numbershttps://realpython.com/python-filter-function/#finding-prime-numbers
Removing Outliers in a Samplehttps://realpython.com/python-filter-function/#removing-outliers-in-a-sample
Validating Python Identifiershttps://realpython.com/python-filter-function/#validating-python-identifiers
Finding Palindrome Wordshttps://realpython.com/python-filter-function/#finding-palindrome-words
Combining filter() With Other Functional Toolshttps://realpython.com/python-filter-function/#combining-filter-with-other-functional-tools
The Square of Even Numbers: filter() and map()https://realpython.com/python-filter-function/#the-square-of-even-numbers-filter-and-map
The Sum of Even Numbers: filter() and reduce()https://realpython.com/python-filter-function/#the-sum-of-even-numbers-filter-and-reduce
Filtering Iterables With filterfalse()https://realpython.com/python-filter-function/#filtering-iterables-with-filterfalse
Extracting Odd Numbershttps://realpython.com/python-filter-function/#extracting-odd-numbers
Filtering Out NaN Valueshttps://realpython.com/python-filter-function/#filtering-out-nan-values
Coding With Pythonic Stylehttps://realpython.com/python-filter-function/#coding-with-pythonic-style
Replacing filter() With a List Comprehensionhttps://realpython.com/python-filter-function/#replacing-filter-with-a-list-comprehension
Replacing filter() With a Generator Expressionhttps://realpython.com/python-filter-function/#replacing-filter-with-a-generator-expression
Conclusionhttps://realpython.com/python-filter-function/#conclusion
Remove adshttps://realpython.com/account/join/
Filtering Iterables With Pythonhttps://realpython.com/courses/python-filter-function/
filter()https://docs.python.org/3/library/functions.html#filter
functional programminghttps://realpython.com/python-functional-programming/
list comprehensionshttps://realpython.com/list-comprehension-python/
generator expressionshttps://realpython.com/introduction-to-python-generators/#building-generators-with-generator-expressions
Pythonichttps://realpython.com/learning-paths/writing-pythonic-code/
iterableshttps://realpython.com/python-iterators-iterables/#getting-to-know-python-iterables
for loopshttps://realpython.com/python-for-loop/
functionshttps://realpython.com/defining-your-own-python-function/
lambda functionshttps://realpython.com/python-lambda/
5 Thoughts On Python Masteryhttps://realpython.com/bonus/python-mastery-course/
https://realpython.com/python-filter-function/#coding-with-functional-style-in-python
returnhttps://realpython.com/python-return-statement/
pure functionshttps://en.wikipedia.org/wiki/Pure_function
Mappinghttps://en.wikipedia.org/wiki/Map_(higher-order_function)
Filteringhttps://en.wikipedia.org/wiki/Filter_(higher-order_function)
predicate, or Boolean-valued, functionhttps://en.wikipedia.org/wiki/Boolean-valued_function
Booleanhttps://realpython.com/python-boolean/
Reducinghttps://en.wikipedia.org/wiki/Fold_(higher-order_function)
isn’t heavily influenced by functional languageshttps://web.archive.org/web/20161104183819/http://python-history.blogspot.com.br/2009/04/origins-of-pythons-functional-features.html
imperativehttps://en.wikipedia.org/wiki/Imperative_programming
Anonymous functionshttps://realpython.com/python-lambda/
map()https://realpython.com/python-map-function/
filter()https://docs.python.org/3/library/functions.html#filter
reduce()https://realpython.com/python-reduce-function/
first-class objectshttps://realpython.com/primer-on-python-decorators/#first-class-objects
higher-order functionshttps://en.wikipedia.org/wiki/Higher-order_function
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-filter-function/#understanding-the-filtering-problem
listhttps://realpython.com/python-list/
numbershttps://realpython.com/python-numbers/
conditional statementhttps://realpython.com/python-conditional-statements/
predicatehttps://en.wikipedia.org/wiki/Predicate_(mathematical_logic)
https://realpython.com/python-filter-function/#getting-started-with-pythons-filter
list, tuplehttps://realpython.com/python-lists-tuples/
sethttps://realpython.com/python-sets/
Chttps://github.com/python/cpython/blob/master/Python/bltinmodule.c
lazy evaluationhttps://en.wikipedia.org/wiki/Lazy_evaluation
filter()https://docs.python.org/2/library/functions.html#filter
Python 3.xhttps://docs.python.org/3/whatsnew/3.0.html#views-and-iterators-instead-of-lists
importhttps://realpython.com/python-import/
Nonehttps://realpython.com/null-in-python/
objects are falsyhttps://docs.python.org/3/library/stdtypes.html#truth-value-testing
Nonehttps://realpython.com/null-in-python/
Decimal(0)https://docs.python.org/3/library/decimal.html#decimal.Decimal
Fraction(0, 1)https://docs.python.org/3/library/fractions.html#fractions.Fraction
set()https://realpython.com/python-sets/
__bool__()https://docs.python.org/3/reference/datamodel.html#object.__bool__
__len__()https://docs.python.org/3/reference/datamodel.html#object.__len__
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-filter-function/#filtering-iterables-with-filter
https://realpython.com/python-filter-function/#extracting-even-numbers
https://realpython.com/python-filter-function/#finding-prime-numbers
prime numbershttps://en.wikipedia.org/wiki/Prime_number
square roothttps://realpython.com/python-square-root-function/
conditional statementhttps://realpython.com/python-conditional-statements/
primality testshttps://en.wikipedia.org/wiki/Primality_test#Simple_methods
https://realpython.com/python-filter-function/#removing-outliers-in-a-sample
describe and summarize a sample of datahttps://realpython.com/python-statistics/
central tendencyhttps://en.wikipedia.org/wiki/Central_tendency
Outliershttps://realpython.com/python-statistics/#outliers
data pointshttps://en.wikipedia.org/wiki/Data_point
normally distributedhttps://en.wikipedia.org/wiki/Normal_distribution
standard deviationshttps://en.wikipedia.org/wiki/Standard_deviation
statisticshttps://docs.python.org/3/library/statistics.html#module-statistics
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-filter-function/#validating-python-identifiers
stringshttps://realpython.com/python-strings/
identifiershttps://docs.python.org/3/reference/lexical_analysis.html#identifiers
strhttps://docs.python.org/3/library/stdtypes.html#str
.isidentifier()https://docs.python.org/3/library/stdtypes.html#str.isidentifier
methodshttps://docs.python.org/3/library/stdtypes.html#string-methods
keywordhttps://realpython.com/python-keywords/
.kwlisthttps://docs.python.org/3/library/keyword.html#keyword.kwlist
keywordhttps://docs.python.org/3/library/keyword.html#module-keyword
https://realpython.com/python-filter-function/#finding-palindrome-words
palindrome wordshttps://en.wikipedia.org/wiki/Palindrome
https://realpython.com/python-filter-function/#combining-filter-with-other-functional-tools
map()https://realpython.com/python-map-function/
reduce()https://realpython.com/python-reduce-function/
https://realpython.com/python-filter-function/#the-square-of-even-numbers-filter-and-map
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-filter-function/#the-sum-of-even-numbers-filter-and-reduce
functoolshttps://docs.python.org/3/library/functools.html#module-functools
reduction or foldinghttps://en.wikipedia.org/wiki/Fold_(higher-order_function)
https://realpython.com/python-filter-function/#filtering-iterables-with-filterfalse
itertoolshttps://realpython.com/python-itertools/
filterfalse()https://docs.python.org/3/library/itertools.html#itertools.filterfalse
https://realpython.com/python-filter-function/#extracting-odd-numbers
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-filter-function/#filtering-out-nan-values
floating-point arithmetichttps://en.wikipedia.org/wiki/Floating-point_arithmetic
NaN (not a number)https://en.wikipedia.org/wiki/NaN
math modulehttps://realpython.com/python-math-module/
isnan()https://docs.python.org/3/library/math.html#math.isnan
https://realpython.com/python-filter-function/#coding-with-pythonic-style
https://realpython.com/python-filter-function/#replacing-filter-with-a-list-comprehension
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-filter-function/#replacing-filter-with-a-generator-expression
https://realpython.com/python-filter-function/#conclusion
functional stylehttps://realpython.com/learning-paths/functional-programming/
list comprehensionshttps://realpython.com/list-comprehension-python/
generator expressionshttps://realpython.com/introduction-to-python-generators/#building-generators-with-generator-expressions
https://realpython.com/feedback/survey/article/python-filter-function/liked/?from=article-footer
https://realpython.com/feedback/survey/article/python-filter-function/disliked/?from=article-footer
Filtering Iterables With Pythonhttps://realpython.com/courses/python-filter-function/
https://realpython.com/team/lpozoramos/
» More about Leodanishttps://realpython.com/team/lpozoramos/
https://realpython.com/team/asantos/
Aldrenhttps://realpython.com/team/asantos/
https://realpython.com/team/bzaczynski/
Bartoszhttps://realpython.com/team/bzaczynski/
https://realpython.com/team/damos/
Davidhttps://realpython.com/team/damos/
https://realpython.com/team/jjablonski/
Joannahttps://realpython.com/team/jjablonski/
https://realpython.com/team/jschmitt/
Jacobhttps://realpython.com/team/jschmitt/
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=python-filter-function
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=python-filter-function
https://realpython.com/feedback/survey/article/python-filter-function/liked/?from=article-comments
https://realpython.com/feedback/survey/article/python-filter-function/disliked/?from=article-comments
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Frealpython.com%2Fpython-filter-function%2F
Twitterhttps://twitter.com/intent/tweet/?text=Interesting%20Python%20article%20on%20%40realpython%3A%20Python%27s%20filter%28%29%3A%20Extract%20Values%20From%20Iterables&url=https%3A%2F%2Frealpython.com%2Fpython-filter-function%2F
Blueskyhttps://bsky.app/intent/compose?text=Interesting%20Python%20article%20on%20%40realpython.com%3A%20Python%27s%20filter%28%29%3A%20Extract%20Values%20From%20Iterables%20https%3A%2F%2Frealpython.com%2Fpython-filter-function%2F
Facebookhttps://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frealpython.com%2Fpython-filter-function%2F
Get tips for asking good questionshttps://realpython.com/python-beginner-tips/#tip-9-ask-good-questions
get answers to common questions in our support portalhttps://support.realpython.com
Real Python Community Chathttps://realpython.com/community/
“Office Hours” Live Q&A Sessionhttps://realpython.com/office-hours/
intermediatehttps://realpython.com/tutorials/intermediate/
best-practiceshttps://realpython.com/tutorials/best-practices/
pythonhttps://realpython.com/tutorials/python/
Filtering Iterables With Pythonhttps://realpython.com/courses/python-filter-function/
Python's reduce(): From Functional to Pythonic Stylehttps://realpython.com/python-reduce-function/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-filter-function
The Walrus Operator: Python's Assignment Expressionshttps://realpython.com/python-walrus-operator/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-filter-function
Managing Python Projects With uv: An All-in-One Solutionhttps://realpython.com/python-uv/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-filter-function
When to Use a List Comprehension in Pythonhttps://realpython.com/list-comprehension-python/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-filter-function
Namespaces in Pythonhttps://realpython.com/python-namespace/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-filter-function
https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpython-filter-function%2F
Continue »https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpython-filter-function%2F
Sign-Inhttps://realpython.com/account/login/?next=/python-filter-function/
Start Herehttps://realpython.com/start-here/
Learning Resourceshttps://realpython.com/search
Code Mentorhttps://realpython.com/mentor/
Python Referencehttps://realpython.com/ref/
Python Cheat Sheethttps://realpython.com/cheatsheets/python/
Support Centerhttps://support.realpython.com/
Learning Pathshttps://realpython.com/learning-paths/
Quizzes & Exerciseshttps://realpython.com/quizzes/
Browse Topicshttps://realpython.com/tutorials/all/
Live Courseshttps://realpython.com/live/
Bookshttps://realpython.com/books/
Podcasthttps://realpython.com/podcasts/rpp/
Newsletterhttps://realpython.com/newsletter/
Community Chathttps://realpython.com/community/
Office Hourshttps://realpython.com/office-hours/
Learner Storieshttps://realpython.com/learner-stories/
Plans & Pricinghttps://realpython.com/account/join/
Team Planshttps://realpython.com/account/join-team/
For Businesshttps://realpython.com/account/join-team/inquiry/
For Schoolshttps://realpython.com/account/join-team/education-inquiry/
Reviewshttps://realpython.com/learner-stories/
About Ushttps://realpython.com/about/
Teamhttps://realpython.com/team/
Mission & Valueshttps://realpython.com/mission/
Editorial Guidelineshttps://realpython.com/editorial-guidelines/
Sponsorshipshttps://realpython.com/sponsorships/
Careershttps://realpython.workable.com
Press Kithttps://realpython.com/media-kit/
Merchhttps://realpython.com/merch
https://www.youtube.com/realpython
https://x.com/realpython
https://www.linkedin.com/company/realpython-com
https://www.facebook.com/LearnRealPython
https://github.com/realpython/
Privacy Policyhttps://realpython.com/privacy-policy/
Terms of Usehttps://realpython.com/terms/
Securityhttps://realpython.com/security/
Contacthttps://realpython.com/contact/
https://realpython.com/

Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover

Robots: max-image-preview:large


URLs of crawlers that visited me.