Jan-20-2019, 06:22 AM
(This post was last modified: Jan-20-2019, 06:22 AM by bob_for_practice.)
I've a:
input_list = [{'1':'a'},{'2':'b'},{'3':'c'},{'1':'d'},{'2':'e'},{'4':'f'},{'1':'g'},{'3':'h'}]
I need:
output_list = [{'1':['a','d','g']},{'2':['b','e']},{'3':['c','h']},{'4':['f']}]
Please guide me.
input_list = [{'1':'a'},{'2':'b'},{'3':'c'},{'1':'d'},{'2':'e'},{'4':'f'},{'1':'g'},{'3':'h'}]
I need:
output_list = [{'1':['a','d','g']},{'2':['b','e']},{'3':['c','h']},{'4':['f']}]
Please guide me.