About 19,600 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(): 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.

  5. Python Filter Function Guide: Filter Lists & Iterables - PyTutorial

    Feb 2, 2026 · What is the Python Filter Function? The filter () function is a built-in Python tool. It processes an iterable, like a list or tuple. It applies a test function to each item. Items that pass the …

  6. Python‘s filter () Function: A Comprehensive Guide

    May 20, 2025 · Have you ever needed to extract specific elements from a collection based on certain conditions? If you‘re working with Python, the filter() function is your friend. This powerful built-in …

  7. Python Filter Function Explained with Examples

    Sep 9, 2025 · Learn how the Python filter () function works with practical examples. Discover how to filter lists, tuples, and iterables efficiently using conditions.

  8. Python Filter — Guide with Examples | CodeConverter Blog

    Feb 11, 2026 · What is the `filter ()` function? The `filter ()` function takes two arguments: a function and an iterable (like a list or tuple). It applies the function to each item in the iterable and returns an …

  9. Python filter () - Programiz

    In this tutorial, we will learn about the Python filter () function with the help of examples.

  10. Python filter () Function - Spark By Examples

    May 30, 2024 · In this article, you have learned the syntax and usage of the filter () function in Python. This function is used to filter the elements from the iterable by evaluating the function to true.