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


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/python-beginner-en-IZ9Ra/1/3?curriculum_id=4f89dab3d788890003000096
<In what way does your code behave incorrectly? Include ALL error messages.>
Oops, try again. Check what your code prints for orange. It doesn’t look quite right!

<What do you expect to happen instead?>
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]
<do not remove the three backticks above>

#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: