(continued from previous pagering_data append(tuple(row)append data in list in the form of tuple row_dict 'daterow[ ]'metalrow[ ]'radiusrow[ ]'pricerow[ ]'quantityrow[ ring_data append(row_dictreturn ring_data def main()ring_data read_file('price csv'total rows in the file print("total rows"len(ring_data)total price calculation total_price for row in ring_datatotal_price +row['price'row['quantity'print("total price{: }format(total_price)extract gold-ring using list comprehension gold_ring [ring for ring in ring_data if ring['metal'='gold'for ring in gold_ringprint metal and radius print("metal{ }radius{ }format(ring['metal']ring['radius'])reverse-sort the data in gold_ring using lambda operators gold_ring sort(key=lambda data data['radius']reverse=trueprint("\nradius in descending order:"for ring in gold_ringprint metal and radius print("metal{ }radius{ }format(ring['metal']ring['radius'])if __name__ ='__main__'main(now execute the file and we will get the following resultspython datamine py metalgoldradius metalgoldradius radius in descending ordermetalgoldradius metalgoldradius conclusion in this we store the data in the list and dictionary then we perform the extraction operation on the dictionary using 'list comprehensionlastly we used the 'lambda operatorfor sorting the data in the dictionary conclusion