8.Keeping Track of Produce


#1



https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/1/3?curriculum_id=4f89dab3d788890003000096
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]


#2

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.


#4