adder cgi it is small further step to get to processing dynamic input try filling out and submitting the adder form one more timedisplayed you should see something like the following (only the numbers should be the ones you entered)this shows one mechanism to deliver data from web form to the cgi script that processes it the names and are used in the form (as we will see laterand the data you entered is associated with those names in fact form is not needed at all to create such an associationif you directly go to the urls or you get arithmetic displayed without the form this is just new input mechanism into the cgi script you have already seen program to produce this adder page from inside regular python program taking input from the keyboard the new cgi versionadder cgionly needs to make few modifications to accept input this way from the browser new features are commented in the source and discussed below the new parts are the import statement through the main functionand the code after the end of the filetostr function read at least these new parts in the source code shown below#!/usr/bin/env python import cgi new def main()new except for the call to processinput form cgi fieldstorage(standard cgi script lines to hereuse format of next two lines with your names and default data numstr form getfirst(" "" "get the form value associated with form name 'xuse default " if there is none numstr form getfirst(" "" "similarly for name 'ycontents processinput(numstr numstr process input into page print(contentsdef processinput(numstr numstr )'''process input parameters and return the final page as string ''num int(numstr transform input to output data num int(numstr total num +num return filetostr('additiontemplate html'format(**locals()standard code for future cgi scripts from here on def filetostr(filename)"""return string containing the contents of the named file ""fin open(filename)contents fin read()fin close(return contents new print("content-typetext/html\ \ "main(exceptcgi print_exception(try say generating html catch and print errors dynamic web pages