Keeping Track of the Produce


#1


https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/1/3?curriculum_id=4f89dab3d788890003000096


Oops, try again. Check what your code prints for orange. It doesn't look quite right!


That has to be right. It didnt work bot after that i solved what the problem was. Becouse of that : print "Price: %s" % prices[x] ==> Instead I had to text it ==> print "price: %s" % prices[x]. CAn you beleive in that? :slight_smile: It made me crazy....


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


#2

sounds like you solved your problem?


#3

Sure!.. Just I wanted to help if someone does same mistake.


#4

price and Price are different string. And in this exercise, command you to print "price: " not "Price: ".


#5

thank you))) Спасибо


#6