I have a dictionary and a list. I want to add a new key to the dictionary so that the value of each of them is equal to one of the array elements. I have explained more about this in the example below
my dictionary
[{'url': 'https://test.com/find/city-1', 'tit': 'title1', 'val': 1},
{'url': 'https://test.com/find/city-2', 'tit': 'title1', 'val': 2},
{'url': 'https://test.com/find/city-3', 'tit': 'title1', 'val': 3}
]
my list
['a','b','c']
What I want:
[{'url': 'https://test.com/find/city-1', 'tit': 'title1', 'val': 1 , 'content' ='a'},
{'url': 'https://test.com/find/city-2', 'tit': 'title1', 'val': 2, 'content' ='b'},
{'url': 'https://test.com/find/city-3', 'tit': 'title1', 'val': 3, 'content' ='c'}
]