def find_indices(nums, val):
    """Given a list, find the two indices that sum to a specific value"""
    for outer in range(len(nums)):
        for inner in range(len(nums)):
            if nums[outer] + nums[inner] == val:
                return (outer, inner)
    return False