Keeping track of the produce 8


#1

So this ismy code,

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

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

for i in prices:
print i
print "prices :%s" % prices[i]
print "stock : %s" % stock[i]
and ikeep getting this:

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

Can someone unconfuse me?


#2

Compare your output with the sample given in instructions. You'll see the mistake.


#3

thanks I got it :smile: