(continued from previous page'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)if __name__ ='__main__'main(following is the output of above codepython datamine py total rows total price list comprehension in previous sectionwe read the data from the file and stored in the list/dictionary to perform further operations in this sectionwe will extract specific type of data and store them in new list let' do it in the python shell as belowbasic method for extraction in the below codeif-statement along with the 'loopis used to extract the desired datai radius from datamine import read_file ring_data read_file('price csv'small_ring [for ring in ring_dataif ring['radius' store radius small_ring append((ring['metal']ring['radius']for ring in small_ringdisplay content of small_ring print(ring('copper' ('iron' list comprehension ring['price'])