Help at Keeping Track Of The Procedure


#1

I need help at this because i kept telling me wrong.

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("price : {}".format(prices[key]))
    print("stock : {}".format(stock[key]))

#2

please give a link to the exercise you are on :slight_smile:


#3

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


#4

codecademy runs python2, no need to use parentheses for print keywords.

the exercise is really strict, you have a space between price and :, and a space between stock and :, remove this space so the output becomes an exact match to the desired output of the exercise


#5

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