automatically be run with double-click of the mouse (though you might not see printed output or error messages this wayprints and exits--the console window appearsand text is printed therebut the console window closes and disappears on program exit unless you are very fastor your machine is very slowyou won' get to see your output at all although this is normal behaviorit' probably not what you had in mind luckilyit' easy to work around this if you need your script' output to stick around when you launch it with an icon clicksimply put call to the built-in input function at the very bottom of the script in (in use the name raw_input insteadsee the note aheadfor examplea first python script import sys print(sys platformprint( * 'spam!print( input(load library module raise to power string repetition <=added in generalinput reads and returns the next line of standard inputwaiting if there is none yet available the net effect in this context will be to pause the scriptthereby keeping the output window shown in figure - open until you press the enter key now that 've shown you this trickkeep in mind that it is usually only required for windowsand then only if your script prints text and exits and only if you will launch the script by clicking its file icon you should add this call to the bottom of your toplevel files if and only if all of these three conditions apply there is no reason to add this call in any other contextssuch as scripts you'll run in command lines or the idle gui (unless you're unreasonably fond of pressing your computer' enter key! that may sound obviousbut it' been another common mistake in live classes how you run programs