super beginner at python here.
I'm trying to convert a list of dictionaries into a single dictionary.
So, something like this:
[ {'Name': 'JD', 'Number': 1},
{'Name': 'Turk', 'Number': 2},
{'Name': 'Carla', 'Number': 3}],
I'd like to change it into
{'Name': 'JD', 'Number': 1,
'Name': 'Turk', 'Number': 2,
'Name': 'Carla', 'Number': 3}
I've been trying this for a while and have looked at a bunch of answers here, but it isn't working.
Thank you!