if you include an input call at the very end of the script but you only need to do so in this one contextbefore we move aheadnote that the input call applied here is the input counterpart of using the print function (and statementfor outputs it is the simplest way to read user inputand it is more general than this example implies for instanceinputoptionally accepts string that will be printed as prompt ( input('press enter to exit')returns to your script line of text read as string ( nextinput input()supports input stream redirections at the system shell level ( python spam py input txt)just as the print statement does for output we'll use input in more advanced ways later in this textfor instance will apply it in an interactive loop for nowit will help you see the output of simple scripts that you click to launch version skew noteif you are working in python xuse raw_input(instead of input(in this code the former was renamed to the latter in python technically has an input function toobut it also evaluates strings as though they are program code typed into scriptand so will not work in this context (an empty string is an errorpython ' input (and ' raw_inputsimply returns the entered text as character stringunevaluated to simulate ' input in xuse eval(input()be awarethoughthat because this runs the entered text as though it were program codethis may have security implications that we'll largely converselyit is also possible to completely suppress the pop-up console window ( command promptfor clicked files on windows when you don' want to see printed text files whose names end in pyw extension will display only windows constructed by your scriptnot the default console window pyw files are simply py source files that have this special operational behavior on windows they are mostly used for python-coded user interfaces that build windows of their ownoften in conjunction with various techniques for saving printed output and errors to files as implied earlierpython achieves this when it is installed by associating special executable (pythonw exe in and earlier and pyw exe as of to open pyw files when clicked clicking file icons