Keeping Track of the product


Replace this line with your code.


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]
It keeps saying that there is something wrong with orange but it shows the right price and stock


an item has a price, not prices


Thank you for your reply...I will take off the s


did you manage to pass the exercise?


Yes I did...thank you! What a difference an 's' makes :slight_smile: