the input is obtained (via input for now)and it is processed into web page stringand as separate step it is displayed in local web page there are few things to noteall input is strings before the numerical calculationsthe digit strings must be converted to integers do calculate ( very simple!result and use it in the output web page although it is not in the python codean important part of the result comes from the web page format string in additiontemplate htmlwhich includes the needed variable names in braces{num }{num }and {totalview it in your browser or in web editor when you write your own codeyou might modify additionweb pyor you can start from stripped down skeleton in the example www folderskeletonforweb pywith comments about where to insert your special code we will examine the bottom part of the following diagram later the top part outlines the flow of data from string input to web page in your browser for regular python program like what we have been describingwith the processing outlined in the middle line the parts in the middle will be common to the later client/server programthat manges input and output with the bottom linethat we will discuss later againthis last section was somewhat artificial you are not in the end likely to find such programs practical as end products however such programs are reasonable to write and test and they include almost all the code you will need for more practical (but harder to debugcgi programcoming next quotient web exercise save additionweb py or skeletonforweb py as quotientweb py modify it to display the results of division problem in web page as in the exercises in display full sentence labeling the initial data and both the integer quotient and the remainder you can take your calculations from quotient string return exercise (page you should only need to make python changes to the processinput and main functions you will also need the html for the output page displayed make web page template file called quotienttemplate html and read it into your program turn in both quotientweb py and quotienttemplate html cgi dynamic web pages cgi stands for common gateway interface this interface is used by web servers to process information requests supplied by browser python has modules to allow programs to do this work the convention used by many servers is to have the server programs that satisfy this interface end in cgithat is the convention used below all files below ending in cgiare cgi programs on web serverand in this they will all be python programs (though there are many other languages in use for this purposethese programs are often called scriptsso we will be dealing with python cgi scripts you cannot run cgi file from inside idle dynamic web pages