I was looking for an understanding of the all
function in Python, and I found this , as per here:
all
will return True
only when all elements are Truthy.
But when I work with this function, it acts differently:
'?' == True # False '!' == True # False all(['?','!']) # True
Why do all elements in the input False
return True
? Did I understand its functionality or is there an explanation?
Arman source share