Keeping Track of the produce


#1




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


The output is right and I expect it to accept it.


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

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

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


#2

you need a space between price: and %s, same for stock


#3

Oh. It worked! Thanks!


#4