Check my code for errors


Oops, try again. You should have exactly three print statements! (Make sure there are no occurrences of 'print' in any comment or string!)

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


Because we know that they have the same keys, we can loop through one dictionary and print values from both once and twice !!
and you have to print fruit
print fruit

if you do this en error will apear because codecademy wnat you to print price not prices like this
print "price: %s" % prices[fruit]