def any_contains_any ( strings , candidates ) : for string in strings : for c in candidates : if c in string : return True
python check string contains any string from a list
Whether any of the strings contains any of the candidates .
def any_contains_any(strings, candidates):
    """Whether any of the strings contains any of the candidates."""
    for string in strings:
        for c in candidates:
            if c in string:
                return True