Check my code for errors


#1



https://www.codecademy.com/en/courses/python-beginner-en-IZ9Ra/1/3?curriculum_id=4f89dab3d788890003000096

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]


#2

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]