def every (pred, seq):
    """every takes a one argument predicate
    function and a sequence. Returns true
    if every element in seq returns true for
    predicate, else returns false.
    The predicate function should return true or false.
    """
    for i in seq:
        if not pred(i): return 0
    return 1
every takes a one argument predicate
    function and a sequence. Returns true
    if every 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