Help at Keeping Track Of The Procedure


I need help at this because i kept telling me wrong.

prices = {
"banana": 4,
"apple": 2,
"orange": 1.5,
"pear": 3 
stock = {
"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15,
for key in prices :
    print("price : {}".format(prices[key]))
    print("stock : {}".format(stock[key]))


please give a link to the exercise you are on :slight_smile:

Here dude


codecademy runs python2, no need to use parentheses for print keywords.

the exercise is really strict, you have a space between price and :, and a space between stock and :, remove this space so the output becomes an exact match to the desired output of the exercise


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