appendix python review the at the bottom of the output is the interactive mode prompt that is used to enter python statements to the interpreter for exampleif you enter the statementprint"hello worldthe interpreter will respond by executing the print(function and displaying the contents of the string to the terminal windowfollowed by another promptprint"hello worldhello world script mode is used to execute python programs that are stored in text files the source files containing python programs can be created with any text editor or integrated development environment (ideof your choosing total while < total + + print"the sum of the first integers is"total to execute the programyou would change to the directory containing the file and enter the commandpython summation py at the command-line prompt this causes the python interpreter to run in script modewhich reads the text file and executes the statements contained within the file when the summation py program is executedthe following output is displayed to the terminalthe sum of the first integers is the first statement to be executed in script mode is the first statement in the text file at global scopewhich include all statements not enclosed within functionclassor method in the summation examplethe assignment statement total will be the first statement executed the basics of python programming language is defined by its syntax and semanticswhich vary from one language to the next but all languages require the use of specific instructions for expressing algorithms as program in the given language the python language consists of many different instructionsincluding those for sequentialselectionand repetition constructs in this sectionwe review the basic syntax used in the construction of simple sequential instructions