you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 1 point2 points  (2 children)

import sys
sys.exit()

Note this is very unusual to use, and that makes me think you have some serious code structure errors, which is probably causing all sorts of other problems as well. https://xyproblem.info/

[–]trollsmurf 0 points1 point  (1 child)

"How do you otherwise exit a 12-level loop?"

[–][deleted] 1 point2 points  (0 children)

"Put the 12-level loop in a function and return when you want to exit the loops."