≡ Menu

Python Filter Function

Selecting and operating on a subset of items from a list or group is a very common idiom in programming. Python provides several built-in ways to do this task efficiently. Python Filtering 1. Python Filter Function The built-in filter() function operates on any iterable type (list, tuple, string, etc). It takes a function and an [...]

{ 11 comments }