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/learn-python/lessons/a-day-at-the-supermarket/exercises/keeping-track-of-the-produce-?action=lesson_resume

<In what way does your code behave incorrectly? Include ALL error messages.>

Check what your code prints for orange. It doesn’t look quite right!
<What do you expect to happen instead?>

correct specifications for orange.


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



#2

Your prices dictionary appears to be missing a it’s first letter.


#3

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