Look into dictionary.
Example Banana is the key and price is the value.
So if you call key you get price.
Here is a code example you can look.
This code will run in a loop given bye argument number given to function.
And save result to a dictionary,that you can use later.
def question(times=None):
'''Dok string some info about code'''
grocery_ditch = {}
print 'Enter grocery item and price'
for i in range(times):
key = raw_input('item %d' % int(i+1))
value = int(raw_input('price'))
grocery_ditch[key] = value
print grocery_ditch #Or use return to get result out of function
question(3)