4 ms·
> "most input is truthy except for the input that isn't" Can you think of any other value that has len(x) == 0 but is truthy? It’s quite simple. Empty collect
by tomp 4y ago
> "most input is truthy except for the input that isn't"
Can you think of any other value that has len(x) == 0 but is truthy?
It’s quite simple. Empty collections and zeros are false, almost everything else is true.
The real head scratcher is that midnight is false.