Two Dictionaries and a Sum!

nanobio hektorlg at gmail.com
Sat May 18 01:22:45 EDT 2013


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



More information about the Python-list mailing list