Two Dictionaries and a Sum!

nanobio hektorlg at gmail.com
Sat May 18 01:20:25 EDT 2013


total,amount=0,0
for key in prices.keys():
   price=prices[key]*stock[key]
   total+=price
   print "%s %s" % (price,total)



More information about the Python-list mailing list