Problem in lesson 10- a day at the supermarket


#1



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

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

What's wrong with my 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 "prices: %s" % prices[key]
    print "stock: %s" % stock[key]


#2

You just need to remove s form prices, it should be price:


#3

thank you
I just figured out by myself after spend 10 min to check on it
Could you tell me how do i delete this post?


#4

Think you can't delete posts