{"id":25590,"date":"2021-11-23T08:55:13","date_gmt":"2021-11-23T03:25:13","guid":{"rendered":"https:\/\/python-programs.com\/?p=25590"},"modified":"2021-11-23T08:55:13","modified_gmt":"2021-11-23T03:25:13","slug":"python-itertools-filterfalse-function-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-itertools-filterfalse-function-with-examples\/","title":{"rendered":"Python Itertools.filterfalse() Function with Examples"},"content":{"rendered":"

Itertools Module:<\/strong><\/p>\n

Itertools is a Python module that contains a collection of functions for dealing with iterators. They make it very simple to iterate through iterables such as lists and strings.<\/p>\n

Itertools.filterfalse() Function:<\/strong><\/p>\n

This iterator prints only values for the passed function that return false.<\/p>\n

Syntax:<\/strong><\/p>\n

filterfalse(function or None, sequence)<\/pre>\n

Parameter Values:<\/strong><\/p>\n

filterfalse() method takes two arguments: function or None as the first and a list of integers as the second argument.<\/p>\n

Return Value:<\/strong><\/p>\n

This method returns the only values for the passed function that return false.<\/p>\n

Itertools.filterfalse() Function with Examples in Python<\/h2>\n