Keeping trace of produce


#1

I got the same problem as well, and I have no idea why...

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
print "prices: %s" % prices[key]
print "stock: %s" % stock[key]


Keeping track of the produce - A day at the supermarket
#2

for this you needed to revive a year old topic, i am too familiar with this forum, i would like to understand: how do you find such old topics, and why not simply make a new topic?

the product has price: not prices:


#3

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