Imagine that you have:
keys = [\'name\', \'age\', \'food\'] values = [\'Monty\', 42, \'spam\']
What is the simplest way to produce the foll
you can use this below code:
dict(zip(['name', 'age', 'food'], ['Monty', 42, 'spam']))
But make sure that length of the lists will be same.if length is not same.then zip function turncate the longer one.