[Solved] Split list of lists in new list [closed]
You may simply map the split, filter if it makes a size 2 tuple, and zip it to get the values separately: In[9]: l=[‘Name’, ‘AMAZON.COM – TOT RETURN IND’, ‘AMAZON.COM INC – NET CASH FLOW – FINANCING’, ‘AMAZON.COM INC – NET CASH FLOW – INVESTING’, ‘AMAZON.COM INC – NET CASH FLOW-OPERATING ACTIVS’, ‘AMAZON.COM INC – … Read more