Python : pass item from list two and that related to some items from list one?
<p>how could i break (pass) item from list two that replated with list one if some condition exist??
ok here my code trying</p>

<pre><code>numbers = ["1","2","5","3","4","9","6","5","7"]
mul = ["a","b"]
for num in numbers:
    for mul_nm in mul:
        h = num+mul_nm
        print(h)
        if (h == "5a"):
            print("don't test 5 with b and pass to next item in list numbers")
        else:
            continue
</code></pre>

<p>this program give this result :</p>

<pre><code>1a
1b
2a
2b
5a
don't test 5 with b and pass to next item in list numbers
5b
3a
3b
4a
4b
9a
9b
6a
6b
5a
don't test 5 with b and pass to next item in list numbers
5b
7a
7b
</code></pre>

<p>while i need the process give this result :</p>

<pre><code>1a
1b
2a
2b
5a
don't test 5 with b and pass to next item in list numbers
3a
3b
4a
4b
9a
9b
6a
6b
5a
don't test 5 with b and pass to next item in list numbers
7a
7b
</code></pre>