def two_sum(numbers, target):
res = ('',)
for num in numbers:
for num2 in numbers:
if num + num2 == target and numbers.index(num) != numbers.index(num2):
res = (numbers.index(num), numbers.index(num2))
print(res)
return res
The code doesnt work when theres a solution with similar indexes https://www.codewars.com/kata/52c31f8e6605bcc646000082/train/python