def validate4(s,a):
    """validate4(s, a): for loop with generator and (l in a)"""
    for x in ((l in a) for l in s):
        if not x:
            return False
    return True
validate4(s, a): for loop with generator and (l in a)
recipes/Python/525484_Convenience_class_algorithm/recipe-525484.py