I searched for understanding about the all
function in Python, and I found this, according to here:
all
will returnTrue
only when all the elements are Truthy.
But when I work with this function it's acting differently:
'?' == True # False
'!' == True # False
all(['?','!']) # True
Why is it that when all elements in input are False
it returns True
? Did I misunderstand its functionality or is there an explanation?