from functools import reduce
def iam(result):
    print('iam(%r)' % result)
return result
any(iam(x) for x in [False, True, False])
reduce(lambda x, y: x or y, (iam(x) for x in [False, True, False]))
How do you apply 'or' to all values of a list in Python?