Answers for "exit the program in python"

5

how to stop running code in python

#to stop all execution of code
exit()
Posted by: Guest on September-28-2020
8

exit in python

import sys
msg = "bye bye"
sys.exit(msg)
# you can use it with out a msg
Posted by: Guest on May-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language