Closed daneah closed 8 years ago
This is as expected. all takes in one iterable argument. By each case:
all
True
False
list
I suppose this might be a wat for those who aren't familiar with truthiness of lists :smile:
wat
This is as expected.
all
takes in one iterable argument. By each case:True
because the iterable is empty and therefore all (0) statements within the iterable areTrue
(trivially).False
because the only item in the iterable, an emptylist
, is falsy.True
because the only item in the iterable, alist
with one item in it, is thruthy.