Keeping Track of the product


#1



Replace this line with your code.


#2

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


#3

an item has a price, not prices


#4

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


#5

did you manage to pass the exercise?


#6

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


#7