3ea92736b8
python any and all are able to break early the moment they come across a member of the iterable that meets the condition; but having a list comprehension nested within breaks that ability to exit early, as the list comprehension has to finish being constructed first before it can be evaluated