Some one please help me with my orange!


#1


Day at the Supermarket, lesson 8

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


prices = {
    "banana": 4,
    "apple": 2,
    "orange": 15,
    "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]


#2

This

It should be 1.5 and not 15.

Also, comma here is needless.


#4

A post was split to a new topic: Keeping trace of product


#6

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