About 140,000 results
Open links in new tab
  1. 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 …

  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. 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 …

  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. Filter (Extract/Remove) Items of a List with in Python: filter ()

    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 …

  6. How to Filter List Elements in Python By Practical Examples

    In this tutorial, you'll learn how to filter list elements by using the built-in Python filter () function.

  7. Python filter () - Programiz

    Builders don't just know how to code, they create solutions that matter. The filter () function selects elements from an iterable based on the result of a function. In this tutorial, we will learn about the …

  8. Python filter () Function - Online Tutorials Library

    The Python filter () function allows you to filter out elements from an iterable object based on the specified condition. An object is said to be iterable if it allows its item to be retrieved through iteration, …

  9. 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.

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

    May 20, 2025 · The filter() function in Python is a built-in function that allows you to process an iterable and extract elements that satisfy a specific condition. It applies a given function to each item in an …