def twoSum_TLE(self, num, target):
        """
        built-in method .index
        :param num: list
        :param target: int
        :return: tuple, (index1, index2)
        """
        nums = num
        for ind1, val in enumerate(nums):
            try:
                ind2 = nums.index(target - val)
                return ind1+1, ind2+1
            except ValueError:
                continue
dataset/ETHPy150Open algorhythms/LeetCode/001 Two Sum.py/Solution.twoSum_TLE/original