how to come exit out of the program in python code example Example: exit python script import sys sys.exit()