Keeping track of the Produce 8/13


#1

Says something is wrong. Can’t figure it out.

prices = {
“banana”: 4,
“apple”: 2,
“orange”: 1.5,
“pear”: 3
}

stock = {
“banana”: 6,
“apple”: 0,
“orange”: 32,
“pear”: 15
}

for item in prices:
print item
print “Price: %s” % prices[item]
print “Stock: %s” % stock[item]


#2

the output need to be an exact match, this includes case sensitivity for price: and stock: label


#3

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