Making a Purchase


#1


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

Hey,
I am stuck at this exercise, although I am not really sure what do I do wrong.
I get an error saying "Oops, try again. Check what your code prints for orange. It doesn't look quite right!" although orange gets printed right!

Can anyone put me in the right path?


prices={"banana":4, "apple":2,"orange":1.5, "pear":3}
stock={"banana":6,"apple":0,"orange":32,"pear":15}

for key in prices: 
    print key
    print "%s" % prices[key]
    print "%s" % stock[key]


#2

oh, found my mistake.

Should have been:
for key in prices:
print key
print "price: %s" % prices[key]
print "stock: %s" % stock[key]


#3