print(xprint('done'file ""line print('done'syntaxerrorinvalid syntax press enter twice before new statement this means you can' cut and paste multiple lines of code into the interactive promptunless the code includes blank lines after each compound statement such code is better run in file--which brings us to the next section' topic system command lines and files although the interactive prompt is great for experimenting and testingit has one big disadvantageprograms you type there go away as soon as the python interpreter executes them because the code you type interactively is never stored in fileyou can' run it again without retyping it from scratch cut-and-paste and command recall can help some herebut not muchespecially when you start writing larger programs to cut and paste code from an interactive sessionyou would have to edit out python promptsprogram outputsand so on--not exactly modern software development methodologyto save programs permanentlyyou need to write your code in fileswhich are usually known as modules modules are simply text files containing python statements once they are codedyou can ask the python interpreter to execute the statements in such file any number of timesand in variety of ways--by system command linesby file icon clicksby options in the idle user interfaceand more regardless of how it is runpython executes all the code in module file from top to bottom each time you run the file terminology in this domain can vary somewhat for instancemodule files are often referred to as programs in python--that isa program is considered to be series of precoded statements stored in file for repeated execution module files that are run directly are also sometimes called scripts--an informal term usually meaning top-level program file some reserve the term "modulefor file imported from another fileand "scriptfor the main file of programwe generally will heretoo (though you'll have to stay tuned for more on the meaning of "top-level,importsand main files later in this whatever you call themthe next few sections explore ways to run code typed into module files in this sectionyou'll learn how to run files in the most basic wayby listing their names in python command line entered at your computer' system prompt though it might seem primitive to some--and can often be avoided altogether by using gui like idlediscussed later--for many programmers system shell command-line windowtogether with text editor windowconstitutes as much of an how you run programs