Like the all() function, there is another function called the ‘any()’ which exactly does the opposite of the former. It behaves like a series of ‘or’ operators unlike ‘all’ that behaves like a series of ‘and’ operators.