Sth is wrong with my orange but don't know why


#1

Hi I also get the notice that sth is wrong with my orange but don't know why.
my code is

prices = {
'banana': 4,
'apple': 2,
'orange': 1.50,
'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]


Something wrong with orange
#2

t should be price instead of prices


#3

thank you , I then changed it to price, but still doesn't work


#4

Capitalization is important so watch out that you have "price" and "stock" not "Price" and "Stock"


#5

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