A Day at the Supermarket



Oops, try again. You should have exactly three print statements! (Make sure there are no occurrences of 'print' in any comment or string!)

I don`t see any difference with reference output...

    "banana": 4,
    "apple": 2,
    "orange": 1.5,
    "pear": 3
    "banana": 6,
    "apple": 0,
    "orange": 32,
    "pear": 15

for key in prices:
    print "%s\nprice: %s\nstock: %s" % (key,prices[key],stock[key])


Hi, @jcheng44 ,

Yes, the output appears the same as what is specified in the instructions. Nevertheless, as the message states, you will need to supply an individual print statement for each of the items that you currently have collected into this tuple ...


, ... instead of using \n characters to separate the lines of output.


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