I wrote a program in IDLE to tokenize text files and it starts to tokeniza 349 text files! How can I stop it? How can I stop a running Python program?
exit() will kill the Kernel if you're in Jupyter Notebook so it's not a good idea. raise command will stop the program.
raise