Keeping track of produce


#1

Can I please have help with this code, I did everything correctly but it still give me an error. Thanks
https://www.codecademy.com/en/courses/python-beginner-en-IZ9Ra/1/3?curriculum_id=4f89dab3d788890003000096


#2

the url is the same for everyone, it checks for user and then loads that users code

please copy paste your code to the forum so someone can help you


#3

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 "prices: %s" % prices[key]
    print "stock: %s" % stock[key]

es este. ami me da error y esta todo bien. I do not speak English


#4

from the instructions:

Print the answer in the following format:

apple
price: 2
stock: 0

your output will give:

apple
prices: 2
stock: 0

you have prices instead of price


#5

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