python end code code example
Example 1: python sys halt
import sys
#put your code here
sys.exit
Example 2: end python program
End a program in python
exit()
import sys
#put your code here
sys.exit
End a program in python
exit()