basic constructions transform coordinates from math import log def ( )return log(yfor in range(len( )) [if( [ ]write out and to two-column file filename 'tmp_out datoutfile open(filename' 'open file for writing outfile write(' and coordinates\ 'for xiyi in zip(xy)outfile write('% % \ (xiyi)outfile close(such file with comment line and numbers in tabular format is very common so numpy has functionality to ease reading and writing here is the same example using the loadtxt and savetxt functions in numpy for tabular data (file file_handling_numpy py)filename 'tmp datimport numpy data numpy loadtxt(filenamecomments='#' data[:, data[:, data[:, numpy log(yinsert transformed back in array filename 'tmp_out datfilename 'tmp_out datoutfile open(filename' 'open file for writing outfile write(' and coordinates\ 'numpy savetxt(outfiledatafmt='% ' exercises exercise errors with colonindentetc write the program ball_function py as given in the text and confirm that the program runs correctly then save copy of the program and use that program during the following error testing you are supposed to introduce errors in the codeone by one for each error introducedsave and run the programand comment how well python' response corresponds to the actual error when you are finished with one errorre-set the program to correct behavior (and check that it works!before moving on to the next error achange the first line from def ( )to def ( ) remove the colon bremove the indent in front of the statement inside the function yi shift the text four spaces to the left