Skip to content

The filter() function in Python is used to filter elements from a sequence (like a list, tuple, or set) based on a condition provided by a function. It returns an iterator that contains only those elements for which the condition (function) returns True.

Notifications You must be signed in to change notification settings

ThakurAashish/filter-function-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

filter-function-

The filter() function in Python is used to filter elements from a sequence (like a list, tuple, or set) based on a condition provided by a function. It returns an iterator that contains only those elements for which the condition (function) returns True.

About

The filter() function in Python is used to filter elements from a sequence (like a list, tuple, or set) based on a condition provided by a function. It returns an iterator that contains only those elements for which the condition (function) returns True.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages