def any (pred, seq):
    """any takes a one argument predicate
    function and a sequence. Returns true
    if any element in seq returns true for
    predicate, else returns false.
    The predicate function should return true or false.
    """
    for i in seq:
        if pred(i): return 1
    return 0
any takes a one argument predicate
    function and a sequence. Returns true
    if any element in seq returns true for
    predicate, else returns false.
    The predicate function should return true or false.
    
recipes/Python/52907_Predicate_tests_across_sequences/recipe-52907.py