`any()` is a built-in function in Python 3 (and Python 2 since version 2.5), to check if any of the items of an <ahref='https://docs.python.org/3/glossary.html#term-iterable'target='_blank'rel='nofollow'>_iterable_</a> is `True`. It takes one argument, `iterable`. This table below is helpful in understanding `all` and `any` iterable.
The `iterable` argument is the collection whose entries are to be checked. It can typically be a `list`, `str`, `dict`, `tuple` etc., even a `file object`.
The return value is a Boolean. It returns 'False' if and only if **all** entries of iterable are `False`, or the `iterable` is empty. This function essentially performs a Boolean `OR` operation over all elements.