Keeping track of the produce print


#1



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


I have done everything shown in the pictures but my code isn't working. Error message:Oops, try again. You should have exactly three print statements! (Make sure there are no occurrences of 'print' in any comment or string!)


I expected that the code would work and i could move on.


Replace this line with your code.


#2

my code is as follows:

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]


#3

Follow the example given in the lesson pane at left. Be sure to use lower case and no plurals.

price:
stock:

Remember to print the key name above those lines.


#4

Thanks that really helped


#5

A post was split to a new topic: I cant see whats wrong with my code


#7