Seems like a bug..or i am missing something


#1

error: Oops, try again. Check what your code prints for orange. It doesn't look quite right!

prices ={
"banana": 4,
"apple": 2,
"orange": 1.5,
"pear":3
}

stock ={"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15
}

for items in prices:
print items
print "price: %s" % prices[items]
print "stocks: %s" % stock[items]

output:range
price: 1.5
stocks: 32
pear
price: 3
stocks: 15
banana
price: 4
stocks: 6
apple
price: 2
stocks: 0
None


#2

I had printed "stocks" instead of "stock"..
hmm..Error display needs to better.. or even better that should not show as error


#3

change stocks -----> stock

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