Program - Convert two lists into a dictionary


Topic: Program - Convert two lists into a dictionary

Solution

ItemId = [54, 65, 76]
names = ["Hard Disk", "Laptop", "RAM"]
itemDictionary = dict(zip(ItemId, names))
print(itemDictionary)



List all Python Programs