This function iterates through all the numbers in the list and finds the sum with other numbers. If the sum is equal to the target, it returns the indices
def indices_sum(nums,target):
for i in range(len(nums)):
for j in range(i+1,len(nums)):
if nums[i]+nums[j] == target: return(i,j)