function to end program python with a command code example Example: exit python script import sys sys.exit()