Cannot figure out what is expecting...everything seems to be fine


#1

prices = {
    "banana": 4,
    "apple": 2,
    "orange": 1.5,
    "pear": 3
    }

stock = {
    "banana": 6,
    "apple": 0,
    "orange": 32,
    "pear": 15
    }

for item in stock:
    print item
    print 'price: ',prices[item]
    print 'stock: ',stock[item

]

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


#2

Study the example at left (in the lesson text) and follow it. You are very close.

Leave the space after the colon and insert %s so it is in the string.

Replace the comma with % (space modulo space).

Be sure to add the closing square bracket.


#3

Thanks for pointing that out..I was going crazy about finding out what is wrong with the values