Keeping Track of the Produce


#1

this is what i got

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

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

print
prices = {'banana': 4, 'apple': 2, 'orange': 1.5, 'pear': 3}
stock = {'banana': 6, 'apple': 0, 'orange': 32, 'pear': 15}
for key in prices:
for key in stock:
print "prices: %s" % prices[key]
print "stock: %s" % stock[key]

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


#2

i don't see what is wrong with my code


#3

Hi this line

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

this part

prices

you should remove the s to prices


#4

so it is price not prices


#5

oh it works thx again


#6

no it is not working