On "8. Keeping Track of the Produce", I got the error "Oops, try again. Check what your code prints for orange. It doesn't look quite right!" when I was using comma to print the values. See the following code:
for key in prices: print key print "price: ", prices[key] print "stock: ", stock[key]
This was the result: https://monosnap.com/file/94bGbcOswXbVJmaqMYVf8dov0LEFR2 , though orange was printed, I still got the error.
I fixed it by transforming the float into str as in:
for key in prices: print key print "price: " + str(prices[key]) print "stock: " + str(stock[key])
My question is: Why it didn't work with comma?