{"id":4791,"date":"2021-05-01T15:02:28","date_gmt":"2021-05-01T09:32:28","guid":{"rendered":"https:\/\/python-programs.com\/?p=4791"},"modified":"2021-11-22T18:42:58","modified_gmt":"2021-11-22T13:12:58","slug":"python-filter-function-tutorial-and-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-filter-function-tutorial-and-examples\/","title":{"rendered":"Python : filter() function | Tutorial and Examples"},"content":{"rendered":"

filter() function in Python<\/h2>\n

This article is about using filter()<\/code> with lambda.<\/p>\n

filter() function :<\/h3>\n

This filter()<\/code> function is used to filter some content from a given sequence where the sequence may be a list, tuple or string etc.<\/p>\n

Syntax : filter<\/span>(<\/span>function, iterable<\/span>)<\/span><\/pre>\n

where,<\/p>\n