My code prints the item, price, and stock - why isn’t it accepted?


#1

Question

My code prints the item, price, and stock - why isn’t it accepted?

Answer

Codecademy checks for exactly the answer that it’s looking for in the instructions. This includes spelling, capitalization, spacing, and punctuation. If any of those are different, it’ll count it wrong.
The most common issue is printing prices: rather than price:, or capitalizing either word printed out.
Also, be sure to convert the value stored in the dictionaries to a string using the str() function so you can print it out!


FAQ: Learn Python: A Day at the Supermarket - Keeping Track of the Produce
#2

It prints identical to the solution command lines…?
I just did it slightly differently


#3

the exercise validates the presence of the 3 print keywords, which is why this isn’t working


#4

Oh, I get it. Thanks.


#5

I don’t understand this – in the case of prices you use price but where there is no s as in stock you simply use stock…very confusing