A day at The Super Market! [help]


#1


Keeping Track of Produce!

I do not know I am getting an error saying the values do not look right yet they all look right to me and are outputted correctly. Had this issue before like a month ago and i quit because no one could help me. Not sure if its a bug or what.

Error Message:

Oops, try again. Check what your code prints for orange. It doesn't look quite right!

correct submission

prices = {
    "banana": 4,
    "apple": 2,
    "orange": 1.5,
    'pear': 3
}

stock = {
    'banana': 6,
    'apple': 0,
    'orange': 32,
    'pear': 15
}

for item in prices:
    print item
    print "Price: %s" % prices[item]
    print "Stock: %s" % stock[item]

Output:

orange
Price: 1.5
Stock: 32

pear
Price: 3
Stock: 15

banana
Price: 4
Stock: 6

apple
Price: 2
Stock: 0

None


#2

price and stock should have lowercase first letters, the validation of the exercise is case sensitive.


#3

lol really.... thats is..... haha ok thanks it worked! much obliged!


#4