foods = [('beans', 33), ('rice', 44), ('pineapple', 55), ('chicken', 66)]
food = OrderedDict((v[0], (v[1], i)) for i, v in enumerate(foods))
print(food['rice'][1])
getting the key index in a Python OrderedDict?