Add element of list in dictionary of other list at the same index
I have a list of values, and a list of dictionaries such as: my_values = ["A", "B", "C"] my_dicts = [{…}, {…}, {…}] I would like to unpack my values into my dictionaries so that the value in position n goes in the nth dictionary, such as: my_new_dicts = [{"value": "A", …}, {"value": "B", …},… Read More Add element of list in dictionary of other list at the same index