Keeping track of produce


Keeping track of produce

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

Hey guys, I keep looking this over I can't tell what I've done wrong with orange.

prices = {

stock = {

for key in prices:
    print key
    print'prices:%s' % prices[key]
    print'stock:%s' % stock[key]


This is what should be printed for orange:

price: 1.5
stock: 32

This is what your code prints:


Do you see the difference?


Thank you, this was bugging me.


You're very welcome :slight_smile:


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