Need help python review: modules


#1



Replace this line with your code.


#2

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


#3

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?


#4

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

apple
price: 2
stock: 0

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


#5

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


#6

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.


#7

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