Need help python review: modules


Replace this line with your code.


Hello @ornicar, can you post your code along with a link to the lesson you're on? Thanks! :slight_smile:


Hello my code works but when I use it, the site write that:

"Oops, try again. Check what your code prints for orange. It doesn't look quite right!"

I don't understand because my code is ok can you help me please?


Look at how you spelled prices. This should be your output:

price: 2
stock: 0

And, remove pass. It's not needed here.


As you can see I don't made mistake about my key name and I can remove pass that change nothing


Why check if key is equal to "apple"? We're just supposed to loop through prices and then begin printing. So, no need to compare.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.