write a program to end a program python code example Example: how to code python to close a program import sys sys.exit(0)