How do I abort the execution of a Python script? [duplicate]
This question already has answers here: How to terminate a script? (12 answers) Closed 2 years ago. I have a simple Python script that I want to stop executing if a condition is met. For example: done = True if done: # quit/stop/exit else: # do other stuff Essentially, I am looking for something that … Read more