Keeping track of produce


#1


I don't know what exactly is wrong it just keeps giving me this error no matter what i do.


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


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];


#2

Nvm i messed up the print statement by adding too many spaces


#3

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