If I have two while: loops, one inside of the other, like such:
while #test :
while #test :
#other code
if #test :
break
#other code
Will the break stop both while: loops or only the one where the if #test : is in?
Thanks for the help!
It would only stop the inner loop. If you wanted to break both loops, you’d have to provide another condition to break in the outer loop.