Keeping track of produce: confused as to why code is not working


#1



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


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


Not working, despite being fairly certain I am correct. Help?


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 "prices: %s" % prices[key]
    print "stock: %s" % stock[key]


#2

a product has a price, not prices


#3

Thank you. Kind of annoying how specific that is, but still, thank you.


#4

Agree, but on a website, if you where to build a shop, prices would be weird. attention to detail is important in programming. Designing the new facebook logo a few years ago took thousands of man hours :stuck_out_tongue:


#5