Aug-16-2019, 12:49 AM
According to the Python docs, all() does quit early.
Quote:all(iterable)¶
Return True if all elements of the iterable are true (or if the iterable is empty). Equivalent to:
def all(iterable): for element in iterable: if not element: return False return True