What's wrong?


#1

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

Hey there @designcoder14227

Mind posting a link to the lesson you're having trouble with? It's hard for us to tell you what you're doing wrong without knowing what you need to do in the first place! :smiley:

Also, please remember to format your code correctly. You can find info on that here.


#3

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