how to terminate proggram with python code example Example: python exit program import sys sys.exit()