Orange error


#1



https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/1/3?curriculum_id=4f89dab3d788890003000096
I am not sure where the mistake for there is nothing wrong with "orange" in the list.

This is what appears in the console:

orange
price:1.5
stock:32
pear
price:3
stock:15
banana
price:4
stock:6
apple
price:2
stock:0
None



#2

This exercise is very strict about formatting.
Check the instructions again.

hint**


The space between string format specifier and colon
.

#3

You were right about the whitespaces.Thank you.


#4

I'm getting the same error. I've checked my whitespaces, and everything looks fine. Any ideas?


#5

Check again the format:
Like for one fruit it should like this.

apple
price: 2
stock: 0

#6

That is what mine looks like.


#7

Here is the output


#8

Your's look like this..

```
apple
prices: 2
stock: 0
```

#9

You changed the code?
Now take a look at this..

This is the format we want..

apple
price: 2
stock: 0

and this is your current code is producing..

apple
Price: 2
Stock: 0

#10

Finally got it to work. Thanks!


#11

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