The strip command does not work on a list that contains other lists.
E.g. [ “ one”,”two “,[ “four”,”five”]]
I want to print out the words without the [].
Is there a way to get around this?
It turns out I was using append to build a list from other lists. I have now used the extend command instead to build the list which dispenses with the [] brackets, so printing is now straightforward. The extend command was not one I was familiar with before.