any(iterable)

55

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

Comments

Submit
0 Comments