exception handling introduction exception handling is the process of handling the run time error error may occur due to missing data and invalid data etc these error can be catch in the runtime using try-except block and then can be processed according to our need this presents some of the examples of error handling for this first create new file with missing data in itas shown below here 'pricecolumn is empty for silver cat price_missing csv date,metal,radius,price,quantity "","gold", , , "","silver", ,, "","iron", , , "","gold", , , "","copper", , , "","iron", , , now try to calculate the total price for this file using 'ring_costfunction valueerror will be displayed as shown belowfrom price import ring_cost ring_cost('price_missing csv'traceback (most recent call last)row[ float(row[ ]price valueerrorcould not convert string to float try-except block the problem discussed in above section can be solved using try-except block in this blockthe 'trystatement can be used to try the string to float/int conversionand if it fails then 'exceptblock can be used to skip the processing of that particular rowas shown belowprice py import csv def ring_cost(filename)''calculate the total cost ''(continues on next page