list of tuples to single list
list of tuples to single list Question: I have list of tuples in the following format, [(‘ABC’, [‘32064’, [‘WOO’, ‘MISSI’]]), (‘XYZ’, [‘32065’, [‘HAY’]])] I need to convert them into following format, [[‘ABC’,’32064′,’Woo’], [‘ABC’,’32064′,’MISSI’], [‘XYZ’,’32065′,’HAY’]] I have tried the following code list1=[[(‘ABC’, [‘32064’, [‘WOO’, ‘MISSI’]]), (‘XYZ’, [‘32065’, [‘HAY’]])]] list2 = [item for sublist in list1 for …