Orange doesn't look right?


#1

It is saying the code for orange is not printing right. What is wrong with it?

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

look at your spelling. Codecademy doesn't want it spelled like that. Instructions say this is how your code should print:

apple
price: 2
stock: 0

Compare the spelling


#3

I appreciate this. Thank you.


#4

Sure, no problem :slightly_smiling_face:


#5

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