Keep track of the produce


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

seems correct to me just keeps having error msg

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]


me,too.I don't know what happened to orange.


maybe you can put the } in a new line


u can but that wont change the result


i got it to work rewrite code and sort it out


what do you mean sort it out. as in a sort command?


like u can sort it out as in place in order yourself or us the command but what i di was rewrite the code and it worked


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