-2

In the following code, is there a way that the 'continue' statement will start the next iteration of the 'for b in a' loop?

for b in a:
    for c in b:
        if somecondition is True:
            continue

I mean, if 'somecondition' is True I need that the script completely skip the 'for c in b' loop and it will start the next iteration in the 'for b in a' loop.

Thank you.

Jhon
  • 1
  • 2

0 Answers0