# 8 Keeping track of produce


#1



Please can someone look at this for me, I am missing my mistake.

8 Keeping track of produce


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


Replace this line with your code. 
https://codecademy.com/en/courses/python-beginner-en-IZ9Ra/1/3?curriculum_id=4f89dab3d788890003000096
prices = {
    "banana" : 4,
    "apple" : 2,
    "orange" : 1.5,
    "pear" : 3
}  
stock = {
    "banana" : 6,
    "apple" : 0,
    "orange" : 32,
    "pear" : 15
}
for key in prices:
    print "prices: %s" % prices[key]
    print "stock: %s" % stock[key]


#2

I count two prints, it says three


#3

add print(key) to print the product name also


#4

Thank you that worked
If you have time can you explain the [key] to me.
I am a little confused about that.
thank you again


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.