Return True if all elements of the iterable are true : all « Buildin Function « Python Tutorial






# Equivalent to:

# def all(iterable):
#    for element in iterable:
#        if not element:
#            return False
#    return True



print all(['A', '', 'B'])








13.2.all
13.2.1.Return True if all elements of the iterable are true