I'm trying to add items from list to the dictionaries in another list.
info = [{'id' : 1, 'tag' : 'Football'}, {'id' : 2, 'tag' : 'MMA'}]
dates = ['May 1st', 'April 23rd']
for item in dates:
for dic in info:
dic['date'] = item
This is what I want to get:
[{'id': 1, 'tag': 'Football', 'date': 'May 1st'},
{'id': 2, 'tag': 'MMA', 'date': 'April 23rd'}]
But instead of it I get this:
[{'id': 1, 'tag': 'Football', 'date': 'April 23rd'},
{'id': 2, 'tag': 'MMA', 'date': 'April 23rd'}]
Correct me please.