Keeping Track of the Produce something wrong with orange


#1

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

whenever i run thig program it an error
Oops, try again. Check what your code prints for orange. It doesn't look quite right!
how to solve it, i'm stuck please help me on this


#2

look at your 2nd instruction

what should be the format?


#3

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