Output is right still showing error


#1


Keeping Track of the Produce

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


It should have shown no error as output is as desired!

prices ={"banana":4,
          "apple":2,
          "orange":1.5,
          "pear":3
        } 
        
stock={"banana":6,"apple":0,"orange":32,"pear":15}        
for item in prices:
    print item
    print "price:%s"%prices[item]
    print "stock:%s"%stock[item]


#2

the output needs to be an exact match, you don't have a space between your colon and the product, example:

price:apple

vs:

price: apple

you need the space after the colon


#3

thanks ,now it worked


#4