it = iter(range(10))
for i in it:

    print("i =", i)
    for j in it:

        print("j =", j)
        if j % 2:

            break