>>> 1 or 1/0
1
>>> any([1, 1/0])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ZeroDivisionError: division by zero
I thought any() could also return True as long as it finds the first True element in the iterable, but why it still checks all elements? Won't it lead to a worse runtime?