function to exit the shell window in python code example Example: exit python terminal Ctrl+d or exit()