Here is my list.
[['john'],
['tom','peter'],
['sam'],
['mary','susan','dan'],
:
['tony']]
I would like to remove all the square brackets and break down the list that looks like below.
['john',
'tom',
'peter',
'sam',
'mary',
'susan',
'dan',
:
'tony']
I tried to use new_lst = ','.join(str(v) for v in lst)
and (','.join(lst))
but they don't work. And I couldn't think of a way to break down those list elements as well. That will be great if you all have some ideas and approaches on how to do that.
Thanks!