Some int/float error or similar to it pls help!


#1



https://www.codecademy.com/en/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!


successfully execute the code


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


#2

HI you should remove the uppercase S and P to price and stock here

print "Price: ..."
print "Stock: ..."

#3

your code is correct , but codecademy want you to :slight_smi
Like the example above, for each key, print out the key along with its price and stock information. Print the answer in the following format:
apple
price: 2
stock: 0

so lowercase Price and Stock


#4

Wow that's correct thankyou dude :slight_smile: :thumbsup: