(continued from previous pagefor row in rowsrow[ float(row[ ]price row[ int(row[ ]quantity total_price +row[ row[ print("total price % total_pricerun the above script and we will get the following outputpython price py total price importantnote thatwhen we use standard library then lots of task are reduced here we need not to perform any cleaning operation removing double-quotes and commas etc alsothe code is shorter and cleaner when we used the csv module csv dictreader the dictreaderoption is same as the reader'but it maps the information into the dictionarywhich enhances the data processing capabilities notereaderreturns reader-object which iterates over the line of the csv file dictreaderis similar to readerbut maps the information in the dictionary in the below examplepython data structure are usede list and set etc which are discussed in next furtherwe will some more examples of dictreaderafter learning the 'data structureand 'functionsimport csv list(csv dictreader(open('price csv'))read dictreader in list [ first item in the list ordereddict([('date''')('metal''gold')('radius'' ')('price'' ')('quantity'' ')][row['metal'for row in fdisplay all values list ['gold''silver''iron''gold''copper''iron'{row['metal'for row in fdisplay unique values set {'silver''copper''iron''gold' [row for row in if row['metal'='gold'read gold entries len(gtotal gold entries for item in gprint radiusprice and quantity print(item['radius']item['price']item['quantity'] csv module