8.Keeping Track of Produce


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

It should work , it is printing them , but for some reason it is giving me error.

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

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

for info in prices:
    print info
    print "price:%s" % prices[info]
    print "stock:%s" % stock[info]


In order to satisfy the lesson checker (SCT) we need to emulate the example almost exactly. Add a space after the colon in both lines above.