About 1,420,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. Built-in FunctionsPython 3.14.2 documentation

    2 days ago · filter(function, iterable, /) ¶ Construct an iterator from those elements of iterable for which function is true. iterable may be either a sequence, a container which supports iteration, or an iterator.

  5. Python filter () - Programiz

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

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

    Jun 27, 2025 · One of the simplest ways to filter data is with the built-in filter() function. As its name makes it clear, filter() lets you pull out only the items that meet a certain condition (or conditions). …

  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 () Function: Guide, Examples and Best Practices

    Oct 29, 2025 · The filter function in Python is a built-in feature that helps you pick only the items you need from a list, tuple, or string. It checks each element with a given condition and keeps only the …

  9. Python‘s filter () Function: A Comprehensive Guide - TheLinuxCode

    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 …

  10. Python filter Function - Complete Guide - ZetCode

    Apr 11, 2025 · We'll cover basic usage, lambda functions, custom predicates, and practical examples. The filter function constructs an iterator from elements of an iterable for which a function returns true. …