+ 2
How can i exit from inner loop ?!
8 odpowiedzi
+ 3
return
+ 4
break
+ 3
+ 2
To stop the Loop: break
To Continue Loop: continue
+ 1
It only break from one layer not all of them
+ 1
You should really start with basics ...
0
while True:
while True:
break
else:
rest of first loop
continue
break
You should control the flow with continue so if one break goes others go with it
if you want more control you should define boolean flags.
0
I am at the beginning