Hello, If I have a dictionary like:
inventory = {'apples': 430, 'bananas': 312, 'oranges': 525, 'pears': 217} How can I get the item with the largest quantity? I tried: max(inventory) but got: 'pears' What I would like to get is 'oranges', at least in this case. Thanks, Carlos _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor