Could someone please check this for me


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

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


The print statements must match exactly with the instructions...

In other words, you need to add spaces after the colons in both "price:%s" and "stock:%s"


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