I've got a List with their elements
my_list = ['a', 'b', 'c']
and a Dictionary that has their keys and blank strings as their values
my_dictionary = {
'key_a' : '',
'key_b' : '',
'key_c' : '',
}
The question is: what is the pythonic way to put each one of this list's elements (in this particularly order) as each one of those dictionary values?
Result should be like this:
my_dictionary = {
'key_a' : 'a',
'key_b' : 'b',
'key_c' : 'c',
}
Ps: please note that I do not need the dictionary values to be in order after that copy. As well pointed in the comments, after Python 3.7, dictionary's order is not guaranteed anymore