So here's simple structure of my code:
while condition:
for i in range(num):
for j in range(num):
if arr[i][j] == something:
#DO SOMETHING
#ESCAPE
I want to escape only the for loops and start over the iteration from arr[0][0] inside the while loop.
It also has to avoid checking the same value that was checked in the previous loop.
For example, if arr[1][1] == something so it goes over the if statement, for the next iteration, it should start from arr[0][0] again and skip checking arr[1][1].
I'm struggling with break statements and the skipping part.