About 9,510 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 …

  2. How can I filter items from a list in Python? - Stack Overflow

    Aug 22, 2009 · The accepted answer recommends filter(). You should upvote that rather than duplicating it.

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

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

  5. How To Filter Lists In Python?

    Mar 3, 2025 · Learn how to filter lists in Python using list comprehension, `filter ()`, and lambda functions. This step-by-step guide includes examples for easy understanding.

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

  7. Filter List in Python - 3 Techniques

    To filter a list in Python, you can use For loop and if-statement, List Comprehension, or filter () built-in function. In this tutorial, we will go through these three ways to filter a list based on a …

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

  9. 5 Ways of Filtering Python Lists - KDnuggets

    Nov 14, 2022 · In this quick tutorial, you will learn 5 simple ways to filter the list elements. It is not limited to data folks, even web developers and software engineers use it on a daily basis.

  10. Python List Filtering: A Comprehensive Guide - CodeRivers

    Feb 23, 2025 · This blog post will delve into the fundamental concepts of list filtering in Python, explore various usage methods, discuss common practices, and provide best practices to …