Generate and Convert two lists into a dictionary
Topic: Generate and 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