Still doesn't work


#1

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 "prices: %s" % prices[key]
print "stock: %s" % stock[key]

Still doesn't work


Keeping Track of Produce : can't get output!
#2

Compare this to the example in the lesson text at left of the editor window.


#3

Thank you mtf, that helped. :smiley:


#4

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