(continued from previous page quantity row[ ring_data append(row_dict return ring_data table formatter def print_table(list_namecol_name=['metal''radius'])""print the formatted output "" for in col_nameprint header print("{:> }format( )end='print(print empty line for in list_nameprint values for in col_nameprint("{:> }format(str(getattr(lc)))end='print( def main()list correct types of columns in csv file types =[strstrfloatfloatint read file and save data in list list_data read_file('price csv'types formatted output print_table(list_dataprint(print_table(list_data['metal''radius''price'] if __name__ ='__main__'main(following are the output for the above codepython contributor py metal radius gold silver iron gold copper iron metal gold silver iron gold copper iron radius price requirement perimeter method in listing the mathematician calculated the average area supposemathematician want to do some analysis on the perimeter of the ring as welltherefore he asked us to add method to calculate the perimeter as well this is quite easy taskand can be implemented as below requirement perimeter method