Imagine that you have:
keys = [\'name\', \'age\', \'food\'] values = [\'Monty\', 42, \'spam\']
What is the simplest way to produce the foll
A more natural way is to use dictionary comprehension
keys = ('name', 'age', 'food') values = ('Monty', 42, 'spam') dict = {keys[i]: values[i] for i in range(len(keys))}