Keeping track of the produce


#1



prices={"banana": 4,
"apple": 2,
"orange": 1.5,
"pear": 3
}

stock ={"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15,
}
for fruit in prices:
print fruit
print "prices: %s" % prices[fruit]
print "stock: %s" % stock[fruit]


Oops, try again. Check what your code prints for orange. It doesn't look quite right!


what´s wrong?? The result looks OK


Replace this line with your code.


#2

a product has a price, not prices


#3

It is working now, Thanks a lot!


#4