Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python continue outer loop

# Use a for else
for outer in ['blah', 'blah', 'blah']:
  for inner in outer:
    if something:
      break
  else:  # will only run if inner loop did NOT break
    do_the_rest_of_the_stuff()
 
PREVIOUS NEXT
Tagged: #python #continue #outer #loop
ADD COMMENT
Topic
Name
1+1 =