Imagine that you have:
keys = ('name', 'age', 'food')
values = ('Monty', 42, 'spam')
What is the simplest way to produce the following dictionary ?
dict = {'name' : 'Monty', 'age' : 42, 'food' : 'spam'}
This code works, but I'm not really proud of it :
dict = {}
junk = map(lambda k, v: dict.update({k: v}), keys, values)