Help with excersice :)

I feel like i did make it right, but apparently i’m not since it keeps giving me an error. Would be glad to get any tips on what’s wrong. Thanks in advance!

Here’s the 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 + "\nprice: " + str(prices[i]))
  print("stock: " + str(stock[i]) + "\n")

And here’s the screenshot with result:

1 Like

The instructions are quite explicit about using the example given in the lesson. That would mean no embellishments (\n). Use three print statements and modulo string formatting. You won’t need to cast the value to str since the modulo formatting does that for us.