I can't find anything wrong


#1

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

result below
orange
price:1.5
stock:32
pear
price:3
stock:15
banana
price:4
stock:6
apple
price:2
stock:0
None


error notice:Check what your code prints for orange. It doesn't look quite right!
tks for your help


#2

Try putting

total += prices[key] * stock[key]
print total

to your for loop.


#3

still not work :dizzy_face:


#4

It's your spacing. You need a space after "price: " and "stock: "