(continued from previous page{'date''''metal''copper''radius' 'price' 'quantity' {'date''''metal''gold''radius' 'price' 'quantity' {'date''''metal''gold''radius' 'price' 'quantity' {'date''''metal''iron''radius' 'price' 'quantity' {'date''''metal''iron''radius' 'price' 'quantity' {'date''''metal''silver''radius' 'price' 'quantity' find and arrange gold rings let' add list comprehension and lambda operator in the file 'datamine pyin the below codethe gold rings are extracted firstand then the rings are arranged in decreasing order according to radius listing find and arrange gold rings datamine py import csv def read_file(filenamemode='warn')''read csv file and save data in the list ''check for correct mode if mode not in ['warn''silent''stop']raise valueerror("possible modes are 'warn''silent''stop'"ring_data [create empty list to save data with open (filename' 'as frows csv reader(fheader next(rowsskip the header change the types of the columns for row in rowstryrow[ float(row[ ]radius row[ float(row[ ]price row[ int(row[ ]quantity except valueerror as errprocess value error only if mode ='warn'print("invalid datarow is skipped"print('row{}reason {}format(row_numerr)elif mode ='silent'pass do nothing elif mode ='stop'raise raise the exception continue (continues on next page find and arrange gold rings