I have a List of pairs like this:
[
{'Name': 'first_name', 'Value': 'Joe'},
{'Name': 'last_name', 'Value': 'Smith'},
{'Name': 'gender', 'Value': 'male'}
]
I want to transform it into a Dict like this:
{
'first_name': 'Joe',
'last_name': 'Smith',
'gender': 'male'
}
I am currently using a simple loop to accomplish this now but I know there is a more Pythonic way to do it. Thoughts?
-Tony