Still problem


#1

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

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

for fruit in prices:
print fruit
print "price : %s" % prices[fruit]
print "stock : %s" % stock[fruit]

Still problem?


8. Keeping track of produce *orange problem
#2

It is the space before the colon that is tripping up the lesson checker. In both instances.


#3

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