def index_of_any(text, any_of):
        """
        @param str text: The text we want to check
        @param list any_of: list of char
        :returns False if text nit
        """
        result = -1
        if not text or not any_of:
            return result

        any_of = list(set(any_of))
        i = 0
        while i < len(text) and result == -1:
            for c in any_of:
                if c == text[i]:
                    result = i
                    break
            i += 1
        return result
def index_of_any ( text , any_of ) : result = - 1 if not text or not any_of : return result any_of = list ( set ( any_of ) ) i = 0 while i < len ( text ) and result == - 1 : for c in any_of : if c == text [ i ] : result = i break i += 1 return result
@param str text: The text we want to check
        @param list any_of: list of char
        :returns False if text nit