Update: the list is filled with lines. I edited the list to show this.
I have 3 different lists e.g.
Section = [('1', '1.1', '1.2'), ('1', '2', '2.2', '3'), ('1', '1.2', '3.2', '3.5')] Page = [('1', '1', '3'), ('1', '2', '2', '2'), ('1', '2', '3', '5')] Titles = [('General', 'Info', 'Titles'), ('More', 'Info', 'Section', 'Here'), ('Another', 'List', 'Of', 'Strings')]
I want to combine them, for example
Combined_List = [('1', '1.1', '1.2'), ('1', '2', '2.2', '3'), ('1', '1.2', '3.2', '3.5'), ('1', '1', '3'), ('1', '2', '2', '2'), ('1', '2', '3', '5'), ('General', 'Info', 'Titles'), ('More', 'Info', 'Section', 'Here'), ('Another', 'List', 'Of', 'Strings')]
Or any other form that allows me to sort them by numbers in the named sections.
In this case, it will be
Sorted_list = [('1', '1', '1', '1.1', '1.2', '1.2', '2', '2.2', '3', '3.2', '3.5'), ('1', '1', '1', '1', '3', '2', '2', '2', '2', '3', '5'), ('General', 'More', 'Another', 'Info', 'Titles', 'List', 'Info', 'Section', 'Here', 'Of', 'Strings')
I need this so that I can eventually export the sorted list by section in excel. If you can think of a more efficient way to display / format, please share!