''' Write me a function in Python that takes in a target and list of numbers, and finds the two indices that sum to the target. ''' def find_two_sum(nums, target): """ Given a list of integers nums and a target integer, return a tuple of two indices that add up to the target. If no such indices exist, return None. Args: nums (list): A list of integers target (int): The target integer Returns: tuple or None: A tuple of two indices that add up to the target, or None if no such indices exist """ num_dict = {} for i, num in enumerate(nums): complement = target - num if complement in num_dict: return (num_dict[complement], i) num_dict[num] = i return None