Keeping track of produce - Someone please help find error


#1

Can some one tell me whats wrong with this code ?

Out put is shwing up but unable to proceed the course.

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

Someone please give me the soluton


Keeping Track of the Produce
#2

There is a missing colon in each expression.

print "price: %s" ...

#3

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