Could someone please check this for me


#1



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


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


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


#2

The print statements must match exactly with the instructions...

In other words, you need to add spaces after the colons in both "price:%s" and "stock:%s"


#4

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