Something of value - Total


#1

The Output is displayed correctly in Something of value exercise, but I am getting a message saying that the total is not printed right?
prices = {
"banana" : 4,
"apple" : 2,
"orange" : 1.5,
"pear" : 3,
}
stock = {
"banana" : 6,
"apple" : 0,
"orange" : 32,
"pear" : 15,
}

total = 0
for fruits in prices:
total = prices[fruits] * stock[fruits]

print fruits
print "price: %s" % prices[fruits]
print "stock: %s" % stock[fruits]
print total

Please let me know how I can correct it, Thanks.


#2

That particular step wants the price of everything together, not individual prices.


#3

Thanks for letting me know


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.