the last flow control concept to cover is how to terminate the program programs always terminate if the program execution reaches the bottom of the instructions howeveryou can cause the program to terminateor exitbefore the last instruction by calling the sys exit(function since this function is in the sys moduleyou have to import sys before your program can use it open file editor window and enter the following codesaving it as exitexample pyimport sys while trueprint('type exit to exit 'response input(if response ='exit'sys exit(print('you typed response 'run this program in idle this program has an infinite loop with no break statement inside the only way this program will end is if the execution reaches the sys exit(call when response is equal to exitthe line containing the sys exit(call is executed since the response variable is set by the input(functionthe user must enter exit in order to stop the program short programguess the number the examples 've shown you so far are useful for introducing basic conceptsbut now let' see how everything you've learned comes together in more complete program in this sectioni'll show you simple "guess the numbergame when you run this programthe output will look something like thisi am thinking of number between and take guess your guess is too low take guess your guess is too low take guess your guess is too high take guess good jobyou guessed my number in guessesflow control