1'''
2Converting a list to dictionary with list elements as keys in dictionary
3All keys will have same value
4'''
5dictOfWords = { i : 5 for i in listOfStr }
6
1def to_dictionary(keys, values):
2 return dict(zip(keys, values))
3
4keys = ["a", "b", "c"]
5values = [2, 3, 4]
6print(to_dictionary(keys, values)) # {'a': 2, 'c': 4, 'b': 3}