I know that "".join(list) converts the list to a string, but what if that list contains a nested list? When I try it returns a TypeError due to unexpected list type. I’m guessing it’s possible with error handling, but so far my attempts have been fruitless.
I know that .join(list) converts the list to a string, but what if that
Share
Well, if the list is nested, simply flatten it beforehand: