I have 2 lists of the same length and a dictionary
list1 = ['hello', 'goodbye', 'no', 'yes', 'if you say so']
list2 = ['a', 'b', 'c', 'd; e; f', 'g']
listDict = {}
I want to add the corresponding values as keys and values respectively, so the output of the dictionary should be like this (and order should stay the same)
listDict = {'hello':'a', 'goodbye':'b', 'no':'c', 'yes':'d; e; f', 'if you say so':'g'}
I tried
for words in list1:
for letters in list2:
listDict[words]=[letters]
but that gives incorrect results (I can't understand them). How could i get the output as described above?