0
How to stop the Code After exception (Solved)
Is it possible to stop the Code before the last Print if the exception occurs? (If the input os Not a number) https://code.sololearn.com/cBzhNh4AjIhg/?ref=app
3 Réponses
+ 3
import sys
...
sys.exit()
+ 2
The functions quit(), exit(), sys.exit() and os._exit() have almost same functionality as they raise the SystemExit exception by which the Python interpreter exits and no stack traceback is printed.
https://www.google.com/amp/s/www.geeksforgeeks.org/python-exit-commands-quit-exit-sys-exit-and-os-_exit/amp/
+ 1
Thanks