Code is not working


#1

price = {
"banana":4,
"apple":2,
"orange":1.5,
"pear":3}
stock ={
"banana":6,
"apple":0,
"orange":32,
"pear":15}
for item in price:
print item
print "price:%s" % price[item]
print "stock:%s" % stock[item]

error ....//////
Check what your code prints for orange. It doesn't look quite right!....


#2

Your code is correct its your spacing that's the issue(the colons in your output).