(continued from previous pagetotal_price for all items in the list with open(filename' 'as fopen file in read mode rows csv reader(fheader next(rowsskip line header for row in rowstryrow[ float(row[ ]price row[ int(row[ ]quantity except valueerrorprocess valueerror only print("invalid datarow is skipped"continue total_price +row[ row[ print("total price % ftotal_pricereturn total_price return total_price def main()total ring_cost('price csv'function call print("total price % totalprint value standard boilerplate main is the starting function if __name__ ='__main__'main(now process the file again and the processing will skip the invalid line and display the total price from price import ring_cost ring_cost('price_missing csv'invalid datarow is skipped report error in previous sectionthe invalid data was ignored and message was printed but it is better give some details about the error as wellwhich is discussed in this section type of error in the below codethe type of the error is printed on the screen price py import csv def ring_cost(filename)''calculate the total cost ''total_price for all items in the list with open(filename' 'as fopen file in read mode rows csv reader(fheader next(rowsskip line header for row in rowstryrow[ float(row[ ]price (continues on next page report error