Keeping Track of Produce


#1



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

I have been getting an error message about orange but my code returns everything exactly how it asks me to.

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

I don't see any problems so can anyone please help explain why it's not letting me progress?


Replace this line with your code. 
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 "price: %s " % prices[key]
    print "stock: %s " % stock[key]


#2

HI remove the space after each %s

"....... : %S" % prices[key]
"..........:  %s" % stock[key]

#3

You need to remove space after %s

print "price: %s" % prices[key]
print "stock: %s" % stock[key]

#4

Thank you! It worked!


#5

Thanks for the help!