Keeping track of the produce


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/1/3?curriculum_id=4f89dab3d788890003000096

<In what way does your code behave incorrectly? Include ALL error messages.>
Oops, try again. Check what your code prints for orange. It doesn’t look quite right!

<What do you expect to happen instead?>

```python

Replace this line with your code.

<do not remove the three backticks above>

https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/1/3?curriculum_id=4f89dab3d788890003000096

#2

What is to be done to rectify this?


#3

impossible to say without your code. Please copy paste your code to the forum


#4

prices = {“banana”:4,“apple”:2,“orange”:1.5,“pear”:3}
stock = {“banana”:6,“apple”:0,“orange”:32,“pear”:15}
for key in prices:
print key
print “prices: %s” % prices[key]
print “stock: %s” % stock[key]

can you please tell why error is coming out for this program however result is correct.


#5

the output needs to be an exact match, a product has price: information not prices:


#8

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