Had trouble understanding why an error popped up at the editor page saying: " Check what your code prints for orange. It doesn’t look quite right"
This was what i did on the editor:
for x in prices:
print “prices: %s” % prices[x]
print “stock: %s” % stock[x]
Thereafter, i got the code answer from codeacademy:
for food in prices:
print “price: %s” % prices[food]
print “stock: %s” % stock[food]
Realized that the singular form of ‘price’ in codeacademy’s answer was the differentiating factor, even though ‘prices’ was the correct name of the list in the first place. Is there something i’m missing?
Help is great appreciated…thanks!!