Trade memory for speed with a dictionary
Checking every pair of numbers is quadratic. A dictionary remembers values you have already seen and answers "have I seen x?" in constant time on average, so one pass is enough.
seen = {}
for index, value in enumerate([2, 7, 11]):
seen[value] = index
print(9 - 7 in seen) # TrueThink before coding
For each value, the partner you need is target minus value. Look it up before storing the current value, so an item is never paired with itself, and duplicates still find each other. Work through the example by hand before changing the starter. Decide what should happen for an empty input, a single value and a repeated value where those cases apply. The checks use several inputs so a hard-coded answer cannot stand in for the rule.
Your task
Write two_sum(items, target) returning indices (i, j) with i < j and items[i] + items[j] == target, choosing the pair whose j is smallest. Return None when no pair exists. The list is not sorted.
The explanation opens here once every check passes.