Keeping Track of the Produce


#1



`python

Replace this line with your code.
price={
"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 "price : %s" % (price[key])
print "stock : %s" % (stock[key])


#2

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


#3

This is the format that codecademy wants you to use:

apple
price: 2
stock: 0

and this is your output for the apple:

apple
price : 2
stock : 0

Do you see the difference?


#4

yes thank you:slight_smile::grin:


#5

You're very welcome :slight_smile:


#6

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh


#7

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