sys.exit() python code example
Example 1: exit in python
import sys
msg = "bye bye"
sys.exit(msg)
# you can use it with out a msg
Example 2: python system exit
import sys
sys.exit(0)
import sys
msg = "bye bye"
sys.exit(msg)
# you can use it with out a msg
import sys
sys.exit(0)