Given a list of dictionaries, each dictionary with only one pair key-value, and each one with different keys and value,
how to get a list of all values of the dictionaries?
example:
Given
my_list = [
{'A': 'first'},
{'B': 'second'},
{'C': 'third'},
{'D': 'fourth'},
{'E': 'fifth'},
{'F': 'sixth'}
]
and I want to get
My_list_2 = [ 'first', 'second', 'third', 'fourth', 'fifth', 'sixth' ]
how can I do it?
I have tryed with
my_list_2 = [ el.values() for el in my_list ]
but I get
[dict_values(['first']), dict_values(['second']), dict_values(['third']), dict_values(['fourth']), dict_values(['fifth']), dict_values(['sixth'])]