Unknown error


#1


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


It should not show the error


Replace this line with your code. 
for key in prices:
    print "orange"
    print "price: %s" % prices["orange"]
    print "stock: %s" % stock["orange"]


#2

Well, you are using a for loop and you are basically just printing the information of one fruit 4 times instead of all of them once. Change "orange" to the index for your loop.


#3

You are manually specifying orange in your print statement. That should be whatever fruit you are printing the price and stock level for. Which is the key in prices.


#4

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