Problem with submitting a corect written code


My code runs and the results are correct. But the output is not in the same order as I wrote them.

Print out the output in the order I wrote the code.

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 some in prices:
    print("Price: %s" % (prices[some]))
    print("Stock: %s" % (stock[some]))


this is python2, print shouldn't have parentheses.

the validation is case sensitive, so it should be price and and stock (not Price and Stock)


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