A Day at the Supermarket (Error on Ornage)


#1



What's wrong with this code? (Error orange code)


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 x in prices:
    print x
    print "Prices: %s" % prices[x]
    print "Stock: %s" % stock[x]


#2

price should be single, not plural, and case sensitivity is important


#3

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