I have the following list of dictionaries:
d = [{'Sport': 'MLB', 'Position': 'SP', 'Age': '25'},
{'Sport': 'NBA', 'Position': 'PG', 'Age': '28'}]
I have another list that i would like to append to the above by using a for loop:
c = [{'2015 Salary' : '25'}, {'2015 Salary': '35'},
{'2016 Salary' : '30'}, {'2016 Salary' : '40'}]
I would like the final output to be
e = [{'Sport': 'MLB', 'Position': 'SP', 'Age': '25', '2015 Salary': '25',
'2016 Salary': '30'},
{'Sport': 'NBA', 'Position': 'PG', 'Age': '28', '2015 Salary': '35',
'2016 Salary': '40'}}]
The positions would always be the same thats why i was going to use a for loop.