How can I turn the following list
['1','2','A,B,C,D','7','8']
into
['1','2','A','B','C','D','7','8']
in the most pythonic way?
I have very unpythonic code that creates nested list, and then flatterens:
sum ( [ word.split(',') for word in words ], [] )
1 Answer