def anyword_substring_search_inner(query_word, target_words):
    """ return True if ANY target_word matches a query_word
    """

    for target_word in target_words:

        if(target_word.startswith(query_word)):
            return query_word

    return False
def anyword_substring_search_inner ( query_word , target_words ) : for target_word in target_words : if ( target_word . startswith ( query_word ) ) : return query_word return False
return True if ANY target_word matches a query_word