About 138,000 results
Open links in new tab
  1. Python's filter (): Extract Values From Iterables

    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 …

  2. Python filter () Function - W3Schools

    Definition and Usage The filter() function returns an iterator where the items are filtered through a function to test if the item is accepted or not.

  3. filter() in python - GeeksforGeeks

    Sep 1, 2025 · filter () function is used to extract elements from an iterable (like a list, tuple or set) that satisfy a given condition. It works by applying a function to each element and keeping only those for …

  4. Python Filter — Guide with Examples | CodeConverter Blog

    1 day ago · Learn about python filter with practical code examples, tips, and common pitfalls. A hands-on guide for developers.

  5. Python filter(): Keep What You Need - DataCamp

    Jun 27, 2025 · Learn how to use Python's filter () function to extract items from lists or other iterables. Understand the key differences between filter and similar Python tools.

  6. Python filter: A Complete Guide to Filtering Iterables - datagy

    Apr 15, 2022 · In this section, you’ll learn how to use the Python filter() function to filter a list of dictionaries. When working with web data, it’s common to get data in the JSON format, which you …

  7. Filter (Extract/Remove) Items of a List with in Python ...

    May 15, 2023 · In Python, you can use filter() to filter (extract/remove) items of a list, tuple, or other iterable that satisfy the conditions. Note that filter() can be substituted by list comprehensions or …