I asked a while ago about how to make a list of sublists (and of even more sublists) from a string given delimiters here. How to process a string into layer of sublists
Now, I need to join them back together and I'm not sure how. I have tried to look here Python : Recursively flatten a list and Flatten a list in python
However, neither of these answers work in my case because chain splits my string (single item "lists") into characters, and then therefore cannot join with "\n", and reduce does not concatenate str and list objects.
I will probably need to walk through the sublists (and their sublists) at some point. Is there a way to iterate through each level of sublist? (I can leave this as a separate question, one step at a time.. but just wondering whether this process is making sense or should I try an entire new method. I do think logically this makes the most sense, I'm just having trouble navigating it.)
Thanks.