Keeping Track of Produce


I dont know why do I have this error: Oops, try again. Check what your code prints for orange. It doesn't look quite right!

The terminal looks ok, but i still have the error.

prices = {

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

Please, I wait for your answer. Thanks. Greetings


There, you started both prices and stock with uppercase letters and the interpreter as in the instructions, expects to see exactly as instructed.

print "price: %s" % prices[key]
print "stock: %s" % stock[key]

I hope this helps! :slight_smile:


Thanks! Only for the uppercase letters.... hahahaha


Yes, just it!

You're welcome.

Have fun coding! :slight_smile: