backlinks to this page:
This is an old revision of the document!
Return True if any element of the iterable is true. If the iterable is empty, return False. Equivalent to:def any(iterable): for element in iterable: if element: return True return False
any() is part of python's built-in functions
Use any() instead of an expression with a lot of