Have you heard about the functions in the title before. If not this tutorial is for you. The all( )
and any( )
both are inbuilt functions in Python.
all( )
The all( )
returns true if all values in the iterable are true or an empty iterable. If any of the values in the iterable is false it returns false.
any( )
The any( )
is vice versa to the all( )
function. It returns true if any of the values in the iterable is true. In case of empty or all the values in the iterable are false. It returns false.
Top comments (0)