A day at supermarket.....got stuck


#1



prices = {
    "banana" : 4,
    "apple"  : 2,
    "orange" : 1.5,
    "pear"   : 3,
}
stock = {
    "banana" : 6,
    "apple"  : 0,
    "orange" : 32,
    "pear"   : 15,
}

for key in prices:
    print key in prices
    print "price: %s" % prices[key]
    print "stock: %s" % stock[key]
for key in prices:
    total == 0
    total = prices[key]* stock[key]
    total = total +
print total



can anyone tell me what should i do next??


#2

Is there a problem? If so, it seems like you forgot to describe it. (Take a moment to consider whether you've provided enough information for your question to be meaningful to somebody passing by)


#3

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