Investing in stock


#1

strong text


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

I'm stuck at this piece because i keep getting an error message : 'Oops, try again. Check what your code prints for orange. It doesn't look quite right!' :neutral_face:


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


#2

the output should be an exact match, you are missing a colon after price and stock


#3

Oh! Thanks . I'm gonna try that out now.


#4

It worked! Yay! Thanks. Making a mistake is not an option in programming. Just a little glitch could make a whole program go boom.