The all() method returns True if all elements in a set are true. What's the logic behind the following contradictory results:
Result 1:
D = {'0', '000', ''}
all(D)
#output:
False
Result 2:
for e in D:
print(all(e))
#output:
True
True
True