0

I have a list of dictionaries that I would like to turn into a dictionary. It looks as such:

[{'A': {'a_char': 'YES', 'amin': 5, 'amax': 10}},
{'B': {'a_char': 'NO', 'amin': 2, 'amax': 11}},
{'C': {'a_char': 'YES', 'amin': 2, 'amax': 10}}
]

I would like to turn this into a single dictionary like such:

{'A': {'a_char': 'YES', 'amin': 5, 'amax': 10},
 'B': {'a_char': 'NO', 'amin': 2, 'amax': 11},
 'C': {'a_char': 'YES', 'amin': 2, 'amax': 10}}

This seems like it should be simple but I am struggling. Please help.

geds133
  • 1,503
  • 5
  • 20
  • 52

0 Answers0