numbers=[2,7,11,15]
target=9
def find_two_sum(numbers,target):
dic1 =dict()
for iin range(0,len(numbers)):
cha = target - numbers[i]
if chanot in dic1:
dic1[numbers[i]] = i+1
else:
return dic1[cha],i+1
print find_two_sum(numbers,target)
numbers=[2,7,11,15]
target=9
def find_two_sum(numbers,target):
dic1 =dict()
for iin range(0,len(numbers)):
cha = target - numbers[i]
if chanot in dic1:
dic1[numbers[i]] = i+1
else:
return dic1[cha],i+1
print find_two_sum(numbers,target)