Oops, try again. You should have exactly three print statements! (Make sure there are no occurrences of 'print' in any comment or string!)


#1

prices={"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" % prices[key])
    print ("stock: %s" % stock[key])

what is wrong with this code


#2
str(prices[key])

will give the string data type expected in the expression. Likewise,

str(stock[key])

Both of those are numbers. To print them as numbers,

print ("price: %i" % prices[key])

#3

Hi @ajeesap87,

Formatting code: discuss.codecademy.com/t/using-backticks-to-format-your-code/3697/2
I have sent your post to correct category, and for this exercise (8), the code is working. Are you using it on a different exercise?