Списки в словарь Python
#This is to convert two lists into a dictionary in Python
#given ListA is key
#given ListB is value
listA = ['itemA','itemB']
listB = ['priceA','priceB']
dict(zip(listA, listB))
# Returns
{'itemA': 'priceA',
'itemB': 'priceB'
}
Frightened Ferret