for i, (x, y) in enumerate(zip(it1, it2), 1):
    print(x, y)
if y - x >= num:
    yield i
print(list(solve((x for x in [0, 1, -1, 3, 7, 4, 5, 3, 2, 4, 8]), 2)))
How to print out the indexes in a list with repetitive elements