Python program to Map two lists into a Dictionary

keys = ['name', 'age', 'job']
values = ['riya', 24, 'Developer']
myDict = {k: v for k, v in zip(keys, values)}
print("Dictionary Items  :  ",  myDict)

OUTPUT:

Dictionary Items  :   {'name': 'riya', 'age': 24, 'job': 'Developer'

Leave a Comment