How to convert list of dict to dict. Below is the list of dict
data = [{\'name\': \'John Doe\', \'age\': 37, \'sex\': \'M\'}, {\'name\': \'Lisa Simp
The best approach would be dict((key, val) for k in data for key, val in k.items())