8. keeping trace of product


#1

Hey all!
struggling with this - this code, which gives the correct output, is throwing up the message:
"Check what your code prints for orange. It doesn't look quite right!"

here's the code.
prices = {
"banana": 4,
"apple": 2,
"orange": 1.5,
"pear": 3
}

stock = {
"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15
}
for item in prices:
print item
print "price: %s " % prices[item]
print "stock: %s " % stock[item]

any help would be greatly appreciated !

:slight_smile:


8. Keeping Track of the Produce
#2

the validation of this exercise is very strict, you are not allowed to have a space after %s


#3

Cheers! very kind of you


#4