This is the list i am trying to flatten.
pp=['a1b0c00',['00ffbcd','c2df']]
flat_list = [item for sublist in pp for item in sublist]
flat_list: ['a', '1', 'b', '0', 'c', '0', '0', '00ffbcd', 'c2df']
Expected result is a single list:['a1b0c00','00ffbcd','c2df']
.
How to flatten this kind of lists in python?