def find_indices(nums, val):
    """Given a list, find the two indices that sum to a specific value"""
    for i, outer_num in enumerate(nums):
        for j, inner_num in enumerate(nums):
            if outer_num + inner_num == val:
                return (i, j)
    return False