Return True if any element of the iterable is true. Equivalent to : Any : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Any »

 

Return True if any element of the iterable is true. Equivalent to


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


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



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Any