program exit python code example
Example 1: python exit program
import sys
sys.exit()
Example 2: how to stop running code in python
#to stop all execution of code
exit()
import sys
sys.exit()
#to stop all execution of code
exit()